From 23f1d21e48e959410a9723696a74cd19c088262d Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Thu, 2 Jun 2022 01:35:39 +0200 Subject: [PATCH] Make the behaviour of `omw.weatherTransition` in omwfx more reasonable --- components/fx/stateupdater.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {