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:
parent
ad9a8e70f4
commit
a151a74a98
5 changed files with 21 additions and 15 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue