Replaced one more call to DrawFulLScreenEffect.
This commit is contained in:
parent
e241f167a7
commit
4ef85d692c
@ -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
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user