mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-26 16:36:48 +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 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)
|
void bindPointLights(std::shared_ptr<SceneUtil::PPLightBuffer> buffer)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue