1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +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
{
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(