1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 06:45:32 +00:00

Fix lighting incontinuity at nightfall and sunrise

This commit is contained in:
scrawl 2015-11-20 03:22:35 +01:00
parent 622573f494
commit e5ce3f62b7

View file

@ -680,7 +680,7 @@ void WeatherManager::update(float duration, bool paused)
if ( !is_night ) {
theta = M_PI * (adjustedHour - mSunriseTime) / dayDuration;
} else {
theta = M_PI * (adjustedHour - adjustedNightStart) / nightDuration;
theta = M_PI * (1.f - (adjustedHour - adjustedNightStart) / nightDuration);
}
osg::Vec3f final(