1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-21 03:14:06 +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 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(