Tweak Decal distance fade defaults and add property hints

The new default values are more usable in real world scenarios
when smooth fading of distant decals is desired for performance reasons.

The Decal distance fade property hints were adjusted based on the
GeometryInstance3D visibility range fade property hints. `or_greater`
was also added to allow specifying larger values if needed.
This commit is contained in:
Hugo Locurcio 2022-02-18 22:19:33 +01:00
parent ad9a8e70f4
commit a151a74a98
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
5 changed files with 21 additions and 15 deletions

View file

@ -57,8 +57,8 @@ private:
real_t upper_fade = 0.3;
real_t lower_fade = 0.3;
bool distance_fade_enabled = false;
real_t distance_fade_begin = 10.0;
real_t distance_fade_length = 1.0;
real_t distance_fade_begin = 40.0;
real_t distance_fade_length = 10.0;
protected:
static void _bind_methods();