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