summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-12-13 18:40:40 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-12-13 21:21:08 +0100
commit240dfc2c68d9c26a287bc5336f412947fa7292ac (patch)
tree85f9fa5df881a6666f61f1c8c374160e4b561cd8 /scene
parent26510f4c90628261aec36ad4d1b40ec87b198d45 (diff)
Tweak the volumetric fog temporal reprojection property hint
Values below 0.5 will cause constant flickering in most situations, and values above 0.99 take a very long time to fully update (10+ seconds at high framerates).
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/environment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp
index 4c25ed589b..3af9186aea 100644
--- a/scene/resources/environment.cpp
+++ b/scene/resources/environment.cpp
@@ -1352,7 +1352,7 @@ void Environment::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "volumetric_fog_ambient_inject", PROPERTY_HINT_RANGE, "0.0,16,0.01,exp"), "set_volumetric_fog_ambient_inject", "get_volumetric_fog_ambient_inject");
ADD_SUBGROUP("Temporal Reprojection", "volumetric_fog_temporal_reprojection_");
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "volumetric_fog_temporal_reprojection_enabled"), "set_volumetric_fog_temporal_reprojection_enabled", "is_volumetric_fog_temporal_reprojection_enabled");
- ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "volumetric_fog_temporal_reprojection_amount", PROPERTY_HINT_RANGE, "0.0,0.999,0.001"), "set_volumetric_fog_temporal_reprojection_amount", "get_volumetric_fog_temporal_reprojection_amount");
+ ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "volumetric_fog_temporal_reprojection_amount", PROPERTY_HINT_RANGE, "0.5,0.99,0.001"), "set_volumetric_fog_temporal_reprojection_amount", "get_volumetric_fog_temporal_reprojection_amount");
// Adjustment