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:
commit
87de776cbc
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user