1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-17 19:20:49 +00:00

Merge branch 'weather_transition' into 'master'

Make the behaviour of `omw.weatherTransition` in omwfx more reasonable

See merge request OpenMW/openmw!1964
This commit is contained in:
Cody Glassman 2022-06-02 00:49:10 +00:00
commit 87de776cbc

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)
{