|
|
@ -504,6 +504,9 @@ namespace MWRender
|
|
|
|
mWater->update(dt);
|
|
|
|
mWater->update(dt);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!mSky->isEnabled() || !mSky->hasRain())
|
|
|
|
|
|
|
|
clearRainRipples();
|
|
|
|
|
|
|
|
|
|
|
|
mCamera->update(dt, paused);
|
|
|
|
mCamera->update(dt, paused);
|
|
|
|
|
|
|
|
|
|
|
|
osg::Vec3f focal, cameraPos;
|
|
|
|
osg::Vec3f focal, cameraPos;
|
|
|
@ -803,7 +806,11 @@ namespace MWRender
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mEffectManager->clear();
|
|
|
|
mEffectManager->clear();
|
|
|
|
mWater->clearRipples();
|
|
|
|
mWater->clearRipples();
|
|
|
|
mUniformRainIntensity->set((float) 0.0); // for interiors
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void RenderingManager::clearRainRipples()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
mUniformRainIntensity->set((float) 0.0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void RenderingManager::clear()
|
|
|
|
void RenderingManager::clear()
|
|
|
|