|
|
|
@ -255,6 +255,7 @@ void SkyManager::create()
|
|
|
|
|
sh::Factory::getInstance().setSharedParameter ("nightFade",
|
|
|
|
|
sh::makeProperty<sh::FloatValue>(new sh::FloatValue(0)));
|
|
|
|
|
sh::Factory::getInstance().setSharedParameter ("atmosphereColour", sh::makeProperty<sh::Vector4>(new sh::Vector4(0,0,0,1)));
|
|
|
|
|
sh::Factory::getInstance().setSharedParameter ("horizonColour", sh::makeProperty<sh::Vector4>(new sh::Vector4(0,0,0,1)));
|
|
|
|
|
|
|
|
|
|
sh::Factory::getInstance().setTextureAlias ("cloud_texture_1", "");
|
|
|
|
|
sh::Factory::getInstance().setTextureAlias ("cloud_texture_2", "");
|
|
|
|
@ -488,6 +489,13 @@ void SkyManager::setWeather(const MWWorld::WeatherResult& weather)
|
|
|
|
|
weather.mSkyColor.r, weather.mSkyColor.g, weather.mSkyColor.b, weather.mSkyColor.a)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mFogColour != weather.mFogColor)
|
|
|
|
|
{
|
|
|
|
|
mFogColour = weather.mFogColor;
|
|
|
|
|
sh::Factory::getInstance().setSharedParameter ("horizonColour", sh::makeProperty<sh::Vector4>(new sh::Vector4(
|
|
|
|
|
weather.mFogColor.r, weather.mFogColor.g, weather.mFogColor.b, weather.mFogColor.a)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mCloudSpeed = weather.mCloudSpeed;
|
|
|
|
|
|
|
|
|
|
if (weather.mNight && mStarsOpacity != weather.mNightFade)
|
|
|
|
|