OpenGL render to texture problems

The time 1:52 in the morning and I just had those “OpenGL” moments again! It seems that the nightmare will never end. An other problem with RTT came up. As you know Sylphis3D uses the stencil shadow method, and therefore needs a stencil buffer. Now that I am implementing high dynamic range (HDR) rendering, I need to render the scene to a floating point framebuffer object and not on the screen… guess what… with OpenGL you can’t have a Continue reading