|
|
|
@ -1550,11 +1550,13 @@ void SkyManager::setWeather(const WeatherResult& weather)
|
|
|
|
|
{
|
|
|
|
|
mNextClouds = weather.mNextCloudTexture;
|
|
|
|
|
|
|
|
|
|
std::string texture = Misc::ResourceHelpers::correctTexturePath(mNextClouds, mSceneManager->getVFS());
|
|
|
|
|
if (!mNextClouds.empty())
|
|
|
|
|
{
|
|
|
|
|
std::string texture = Misc::ResourceHelpers::correctTexturePath(mNextClouds, mSceneManager->getVFS());
|
|
|
|
|
|
|
|
|
|
if (!texture.empty())
|
|
|
|
|
mCloudUpdater2->setTexture(mSceneManager->getTextureManager()->getTexture2D(texture,
|
|
|
|
|
osg::Texture::REPEAT, osg::Texture::REPEAT));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mCloudBlendFactor != weather.mCloudBlendFactor)
|
|
|
|
|