Merge pull request #2159 from Capostrophic/lighting

[0.45.0 regression] Fix upside-down night-time lighting
pull/541/head
Bret Curtis 6 years ago committed by GitHub
commit 4a9abf1c1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -748,7 +748,7 @@ void WeatherManager::update(float duration, bool paused, const TimeStamp& time,
}
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(

Loading…
Cancel
Save