Simplified version of my deferred rendering looks like this:
- bind fbo1
- clear color and depth buffers
- gbuffer stage (gbuffer contains only these pixels which pass a depth test)
unbind fbo1
bind fbo2
- clear color buffer
- draw a full screen quad, shading stage (render to the texture for some post processing effects)
unbind fbo2
clear color and depth buffers
- draw a full screen quad and render to the default framebuffer
How to combine that with the forward rendering ?