1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-29 22:20:33 +00:00

Merge pull request #2159 from Capostrophic/lighting

[0.45.0 regression] Fix upside-down night-time lighting
This commit is contained in:
Bret Curtis 2019-02-07 11:27:22 +01:00 committed by GitHub
commit 4a9abf1c1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(