sun gradually disappears

actorid
scrawl 13 years ago
parent d18b3271b1
commit 5ea2122f79

@ -696,6 +696,7 @@ void SkyManager::setWeather(const MWWorld::WeatherResult& weather)
strength = 1.f;
mSunGlare->setVisibility(weather.mGlareView * strength);
mSun->setVisibility(strength);
mAtmosphereNight->setVisible(weather.mNight && mEnabled);
}

@ -572,7 +572,7 @@ void WeatherManager::update(float duration)
mRendering->configureFog(result.mFogDepth, result.mFogColor);
// disable sun during night
if (mHour >= 21 || mHour <= 5.5f)
if (mHour >= 20 || mHour <= 6.f)
mRendering->getSkyManager()->sunDisable();
else
{

Loading…
Cancel
Save