From c1d39bb35fec73bc4e59e45c83b7b32f9c40ecd5 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 26 Feb 2012 15:54:52 +0100 Subject: [PATCH] tweaked cloud color --- apps/openmw/mwrender/sky.cpp | 6 +++++- apps/openmw/mwworld/weather.cpp | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwrender/sky.cpp b/apps/openmw/mwrender/sky.cpp index b39ad3046..f2e78053a 100644 --- a/apps/openmw/mwrender/sky.cpp +++ b/apps/openmw/mwrender/sky.cpp @@ -599,7 +599,11 @@ void SkyManager::setWeather(const MWWorld::WeatherResult& weather) 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; } diff --git a/apps/openmw/mwworld/weather.cpp b/apps/openmw/mwworld/weather.cpp index 149f211bc..8acbbb460 100644 --- a/apps/openmw/mwworld/weather.cpp +++ b/apps/openmw/mwworld/weather.cpp @@ -733,7 +733,6 @@ void WeatherManager::setHour(const float hour) */ mHour = hour; - } void WeatherManager::setDate(const int day, const int month)