Replaced one more call to DrawFulLScreenEffect.

This commit is contained in:
hiker 2015-05-20 09:09:34 +10:00
parent e241f167a7
commit 4ef85d692c

View File

@ -251,6 +251,12 @@ public:
assignUniforms();
assignSamplerNames(0, "tex", ST_NEAREST_FILTERED);
} // BloomShader
// ------------------------------------------------------------------------
void render(GLuint in)
{
BloomShader::getInstance()->setTextureUnits(in);
drawFullScreenEffect();
} // render
}; // BloomShader
// ============================================================================
@ -570,7 +576,7 @@ public:
void render(GLuint tex, const core::vector2df &sunpos)
{
setTextureUnits(tex);
DrawFullScreenEffect<GodRayShader>(sunpos);
drawFullScreenEffect(sunpos);
} // render
}; // GodRayShader
@ -812,8 +818,7 @@ void PostProcessing::update(float dt)
// ----------------------------------------------------------------------------
static void renderBloom(GLuint in)
{
BloomShader::getInstance()->setTextureUnits(in);
DrawFullScreenEffect<BloomShader>();
BloomShader::getInstance()->render(in);
} // renderBloom
// ----------------------------------------------------------------------------