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:
parent
5664d879a5
commit
f6342cfd60
1 changed files with 41 additions and 35 deletions
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue