From c422b61464bdb93ee8b100aefafcd0e0dba6f3dc Mon Sep 17 00:00:00 2001 From: Marianne Gagnon Date: Thu, 19 Mar 2015 19:01:35 -0400 Subject: [PATCH] Fix lens flare --- src/graphics/post_processing.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/graphics/post_processing.cpp b/src/graphics/post_processing.cpp index 11c9ab0f9..21c93ffd0 100644 --- a/src/graphics/post_processing.cpp +++ b/src/graphics/post_processing.cpp @@ -750,6 +750,12 @@ FrameBuffer *PostProcessing::render(scene::ICameraSceneNode * const camnode, boo FullScreenShader::BloomBlendShader::getInstance()->SetTextureUnits( irr_driver->getRenderTargetTexture(RTT_BLOOM_128), irr_driver->getRenderTargetTexture(RTT_BLOOM_256), irr_driver->getRenderTargetTexture(RTT_BLOOM_512)); DrawFullScreenEffect(); + + FullScreenShader::LensBlendShader::getInstance()->SetTextureUnits( + irr_driver->getRenderTargetTexture(RTT_LENS_128), irr_driver->getRenderTargetTexture(RTT_LENS_256), irr_driver->getRenderTargetTexture(RTT_LENS_512)); + DrawFullScreenEffect(); + + glDisable(GL_BLEND); glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); } // end if bloom