1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

tweaked cloud color

This commit is contained in:
scrawl 2012-02-26 15:54:52 +01:00
parent f79bf1f300
commit c1d39bb35f
2 changed files with 5 additions and 2 deletions

View File

@ -599,7 +599,11 @@ void SkyManager::setWeather(const MWWorld::WeatherResult& weather)
if (mCloudColour != weather.mSunColor) if (mCloudColour != weather.mSunColor)
{ {
mCloudMaterial->getTechnique(0)->getPass(0)->setSelfIllumination(weather.mSunColor + weather.mAmbientColor); ColourValue clr( weather.mSunColor.r*0.7 + weather.mAmbientColor.r*0.7,
weather.mSunColor.g*0.7 + weather.mAmbientColor.g*0.7,
weather.mSunColor.b*0.7 + weather.mAmbientColor.b*0.7);
mCloudMaterial->getTechnique(0)->getPass(0)->setSelfIllumination(clr);
mCloudColour = weather.mSunColor; mCloudColour = weather.mSunColor;
} }

View File

@ -733,7 +733,6 @@ void WeatherManager::setHour(const float hour)
*/ */
mHour = hour; mHour = hour;
} }
void WeatherManager::setDate(const int day, const int month) void WeatherManager::setDate(const int day, const int month)