|
|
|
@ -301,6 +301,10 @@ void RenderingManager::configureFog(const float density, const Ogre::ColourValue
|
|
|
|
|
|
|
|
|
|
mRendering.getCamera()->setFarClipDistance ( max / density );
|
|
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
void RenderingManager::checkUnderwater(){
|
|
|
|
|
if(mWater){
|
|
|
|
|
void RenderingManager::checkUnderwater()
|
|
|
|
|
{
|
|
|
|
|
if(mWater)
|
|
|
|
|
{
|
|
|
|
|
mWater->checkUnderwater( mRendering.getCamera()->getRealPosition().y );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|