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:
parent
ffa3596fe4
commit
796b87fde7
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user