mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 10:06:42 +00:00
Fix lighting incontinuity at nightfall and sunrise
This commit is contained in:
parent
61314e1db1
commit
5f143dee2d
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,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…
Reference in a new issue