diff --git a/components/fx/stateupdater.hpp b/components/fx/stateupdater.hpp index 8b181729d1..39098c5e2f 100644 --- a/components/fx/stateupdater.hpp +++ b/components/fx/stateupdater.hpp @@ -85,7 +85,7 @@ namespace fx void setWindSpeed(float speed) { mData.get() = speed; } - void setWeatherTransition(float transition) { mData.get() = transition; } + void setWeatherTransition(float transition) { mData.get() = transition > 0 ? 1 - transition : 0; } void bindPointLights(std::shared_ptr buffer) {