Removed one more reference.

This commit is contained in:
hiker 2015-05-21 17:12:59 +10:00
parent 2c68bd194c
commit 18179bd18d

View File

@ -593,6 +593,17 @@ public:
assignUniforms("radius", "k", "sigma");
assignSamplerNames(0, "dtex", ST_SEMI_TRILINEAR);
} // SSAOShader
// ------------------------------------------------------------------------
void render()
{
setTextureUnits(irr_driver->getRenderTargetTexture(RTT_LINEAR_DEPTH));
glGenerateMipmap(GL_TEXTURE_2D);
drawFullScreenEffect(irr_driver->getSSAORadius(),
irr_driver->getSSAOK(),
irr_driver->getSSAOSigma());
} // render
}; // SSAOShader
// ============================================================================
@ -1245,14 +1256,9 @@ void PostProcessing::renderSSAO()
irr_driver->getSceneManager()->getActiveCamera()->getFarValue() );
irr_driver->getFBO(FBO_SSAO).Bind();
SSAOShader::getInstance()
->setTextureUnits(irr_driver->getRenderTargetTexture(RTT_LINEAR_DEPTH));
glGenerateMipmap(GL_TEXTURE_2D);
SSAOShader::getInstance()->render();
} // renderSSAO
DrawFullScreenEffect<SSAOShader>
(irr_driver->getSSAORadius(), irr_driver->getSSAOK(),
irr_driver->getSSAOSigma() );
}
// ----------------------------------------------------------------------------
void PostProcessing::renderMotionBlur(unsigned , FrameBuffer &in_fbo,
FrameBuffer &out_fbo)