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

@ -191,8 +191,8 @@ struct Decal {
float upper_fade = 0.3;
float lower_fade = 0.3;
bool distance_fade = false;
float distance_fade_begin = 10;
float distance_fade_length = 1;
float distance_fade_begin = 40.0;
float distance_fade_length = 10.0;
float normal_fade = 0.0;
Dependency dependency;