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:
parent
f79bf1f300
commit
c1d39bb35f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user