Framebuffer depth attachments
I have a bit of a problem refactoring my deferred renderer.
I used two separate FBO: one for rendering the g-buffer and the other one to render the shadow-maps. Now I try to get rid of the second FBO used for shadow-map rendering and use the g-buffer FBO instead. What I do is to attach the according shadow-map as depth-attachment to the g-buffer FBO then disable drawing to any color-attachments using glDrawBuffer( GL_NONE ) and then I just render the geometry. So the question is whether it is valid to have color-attachments with different resolutions and different types from the depth-attachment?