I have a question for you: Is it possible to do a stencil test with an FBO when drawing geometry to the main framebuffer? I’m trying this so I can draw a skybox in my deferred renderer, I’ve read some of the forum postst on the subject, but they were not helping a lot.
My best guess would be to blit the fbo to the backbuffer and then perform the stencil test but it doesn’t seem to be working out for me. any ideas / solutions?