forked from teamnwah/openmw-tes3coop
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->setShadowsEnabled(false);
|
||||||
vp->setVisibilityMask(RV_Actors + RV_Misc + RV_Statics + RV_StaticsSmall + RV_Terrain + RV_Sky);
|
vp->setVisibilityMask(RV_Actors + RV_Misc + RV_Statics + RV_StaticsSmall + RV_Terrain + RV_Sky);
|
||||||
vp->setMaterialScheme("water_refraction");
|
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->setAutoUpdated(true);
|
||||||
mRenderTarget->addListener(this);
|
mRenderTarget->addListener(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -349,9 +349,10 @@ void RenderingManager::update (float duration, bool paused)
|
||||||
|
|
||||||
mRendering.update(duration);
|
mRendering.update(duration);
|
||||||
|
|
||||||
|
Ogre::ControllerManager::getSingleton().setTimeFactor(paused ? 0.f : 1.f);
|
||||||
|
|
||||||
if(paused)
|
if(paused)
|
||||||
{
|
{
|
||||||
Ogre::ControllerManager::getSingleton().setTimeFactor(0.f);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -520,8 +521,8 @@ void RenderingManager::configureFog(MWWorld::Ptr::CellStore &mCell)
|
||||||
|
|
||||||
configureFog(mCell.mCell->mAmbi.mFogDensity, color);
|
configureFog(mCell.mCell->mAmbi.mFogDensity, color);
|
||||||
|
|
||||||
if (mWater)
|
//if (mWater)
|
||||||
mWater->setViewportBackground (Ogre::ColourValue(0.8f, 0.9f, 1.0f));
|
// mWater->setViewportBackground (Ogre::ColourValue(0.8f, 0.9f, 1.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderingManager::configureFog(const float density, const Ogre::ColourValue& colour)
|
void RenderingManager::configureFog(const float density, const Ogre::ColourValue& colour)
|
||||||
|
|
Loading…
Reference in a new issue