mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 08:53:52 +00:00
tweaked cloud color
This commit is contained in:
parent
f79bf1f300
commit
c1d39bb35f
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -733,7 +733,6 @@ void WeatherManager::setHour(const float hour)
|
|||
*/
|
||||
|
||||
mHour = hour;
|
||||
|
||||
}
|
||||
|
||||
void WeatherManager::setDate(const int day, const int month)
|
||||
|
|
Loading…
Reference in a new issue