mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-17 10:21:11 +00:00
Fix lighting incontinuity at nightfall and sunrise
This commit is contained in:
parent
622573f494
commit
e5ce3f62b7
@ -680,7 +680,7 @@ void WeatherManager::update(float duration, bool paused)
|
|||||||
if ( !is_night ) {
|
if ( !is_night ) {
|
||||||
theta = M_PI * (adjustedHour - mSunriseTime) / dayDuration;
|
theta = M_PI * (adjustedHour - mSunriseTime) / dayDuration;
|
||||||
} else {
|
} else {
|
||||||
theta = M_PI * (adjustedHour - adjustedNightStart) / nightDuration;
|
theta = M_PI * (1.f - (adjustedHour - adjustedNightStart) / nightDuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
osg::Vec3f final(
|
osg::Vec3f final(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user