mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 00:45:32 +00:00
Fix time factor
This commit is contained in:
parent
db9e49968e
commit
5b099393fa
2 changed files with 5 additions and 4 deletions
|
@ -33,7 +33,7 @@ namespace MWRender
|
|||
vp->setShadowsEnabled(false);
|
||||
vp->setVisibilityMask(RV_Actors + RV_Misc + RV_Statics + RV_StaticsSmall + RV_Terrain + RV_Sky);
|
||||
vp->setMaterialScheme("water_refraction");
|
||||
vp->setBackgroundColour (Ogre::ColourValue(0.0078, 0.0576, 0.150));
|
||||
vp->setBackgroundColour (Ogre::ColourValue(0.180, 0.235, 0.22352));
|
||||
mRenderTarget->setAutoUpdated(true);
|
||||
mRenderTarget->addListener(this);
|
||||
}
|
||||
|
|
|
@ -349,9 +349,10 @@ void RenderingManager::update (float duration, bool paused)
|
|||
|
||||
mRendering.update(duration);
|
||||
|
||||
Ogre::ControllerManager::getSingleton().setTimeFactor(paused ? 0.f : 1.f);
|
||||
|
||||
if(paused)
|
||||
{
|
||||
Ogre::ControllerManager::getSingleton().setTimeFactor(0.f);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -520,8 +521,8 @@ void RenderingManager::configureFog(MWWorld::Ptr::CellStore &mCell)
|
|||
|
||||
configureFog(mCell.mCell->mAmbi.mFogDensity, color);
|
||||
|
||||
if (mWater)
|
||||
mWater->setViewportBackground (Ogre::ColourValue(0.8f, 0.9f, 1.0f));
|
||||
//if (mWater)
|
||||
// mWater->setViewportBackground (Ogre::ColourValue(0.8f, 0.9f, 1.0f));
|
||||
}
|
||||
|
||||
void RenderingManager::configureFog(const float density, const Ogre::ColourValue& colour)
|
||||
|
|
Loading…
Reference in a new issue