Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Glow::compute( float time )
- {
- m_shader.enable();
- glActiveTexture(GL_TEXTURE0);
- m_fbo.enable();
- glBindTexture(GL_TEXTURE_2D, m_input->getColor());
- Core::Fast2DQuadDraw();
- m_fbo.disable();
- m_fbo2.enable();
- glBindTexture(GL_TEXTURE_2D, m_fbo.getColor());
- Core::Fast2DQuadDraw();
- m_fbo2.disable();
- m_fbo.enable();
- glBindTexture(GL_TEXTURE_2D, m_fbo2.getColor());
- Core::Fast2DQuadDraw();
- m_fbo.disable();
- m_shader.disable();
- m_final.enable();
- glBindTexture(GL_TEXTURE_2D, m_input->getColor());
- Core::Fast2DQuadDraw();
- glEnable(GL_BLEND);
- glBlendFunc(GL_ONE, GL_ONE);
- glBindTexture(GL_TEXTURE_2D, m_fbo.getColor());
- Core::Fast2DQuadDraw();
- glDisable(GL_BLEND);
- m_final.disable();
- }
Add Comment
Please, Sign In to add comment