1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-23 02:41:34 +00:00

Fix upside-down night-time lighting

This commit is contained in:
Capostrophic 2019-02-06 23:53:13 +03:00
parent ffa3596fe4
commit 796b87fde7

View file

@ -748,7 +748,7 @@ void WeatherManager::update(float duration, bool paused, const TimeStamp& time,
} }
else else
{ {
theta = static_cast<float>(osg::PI) + static_cast<float>(osg::PI) * (adjustedHour - adjustedNightStart) / nightDuration; theta = static_cast<float>(osg::PI) - static_cast<float>(osg::PI) * (adjustedHour - adjustedNightStart) / nightDuration;
} }
osg::Vec3f final( osg::Vec3f final(