Fix lighting incontinuity at nightfall and sunrise

openmw-38
scrawl 9 years ago
parent 61314e1db1
commit 5f143dee2d

@ -690,7 +690,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(

Loading…
Cancel
Save