mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 04:36:41 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue