1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 08:53:52 +00:00

fixed viewport background color, fixed indentation of some old functions

This commit is contained in:
scrawl 2012-04-05 11:52:06 +02:00
parent 5664d879a5
commit f6342cfd60

View file

@ -301,6 +301,10 @@ void RenderingManager::configureFog(const float density, const Ogre::ColourValue
mRendering.getCamera()->setFarClipDistance ( max / density ); mRendering.getCamera()->setFarClipDistance ( max / density );
mRendering.getViewport()->setBackgroundColour (colour); mRendering.getViewport()->setBackgroundColour (colour);
CompositorInstance* inst = CompositorManager::getSingleton().getCompositorChain(mRendering.getViewport())->getCompositor("gbuffer");
if (inst != 0)
inst->getCompositor()->getTechnique(0)->getTargetPass(0)->getPass(0)->setClearColour(colour);
} }
@ -360,8 +364,10 @@ void RenderingManager::toggleLight()
setAmbientMode(); setAmbientMode();
} }
void RenderingManager::checkUnderwater(){ void RenderingManager::checkUnderwater()
if(mWater){ {
if(mWater)
{
mWater->checkUnderwater( mRendering.getCamera()->getRealPosition().y ); mWater->checkUnderwater( mRendering.getCamera()->getRealPosition().y );
} }
} }