Unverified Commit 4a9abf1c authored by Bret Curtis's avatar Bret Curtis Committed by GitHub

Merge pull request #2159 from Capostrophic/lighting

[0.45.0 regression] Fix upside-down night-time lighting
parents 8f75292d 796b87fd
Pipeline #46516329 passed with stage
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment