1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-29 09:11:34 +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(