mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-14 15:40:18 +00:00
fixed viewport background color, fixed indentation of some old functions
This commit is contained in:
parent
5664d879a5
commit
f6342cfd60
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user