1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37:53 +00:00

Make the behaviour of omw.weatherTransition in omwfx more reasonable

This commit is contained in:
Petr Mikheev 2022-06-02 01:35:39 +02:00
parent 1a9fe98764
commit 23f1d21e48

View File

@ -85,7 +85,7 @@ namespace fx
void setWindSpeed(float speed) { mData.get<WindSpeed>() = speed; }
void setWeatherTransition(float transition) { mData.get<WeatherTransition>() = transition; }
void setWeatherTransition(float transition) { mData.get<WeatherTransition>() = transition > 0 ? 1 - transition : 0; }
void bindPointLights(std::shared_ptr<SceneUtil::PPLightBuffer> buffer)
{