shapeare
09-22-2011, 05:59 AM
I found an article through this link:
OpenGL Framebuffer tutorial (http://www.gamedev.net/page/resources/_//feature/fprogramming/opengl-frame-buffer-object-101-r2331)
there is a sentence says "A renderbuffer are just objects which are used to support offscreen rendering, often for sections of the framebuffer which don’t have a texture format associated with them such as the stencil or depth buffer."
Why framebuffer does not have a texture format associated with depth buffer? Does this mean I cannot render depth to texture directly using a framebuffer?
OpenGL Framebuffer tutorial (http://www.gamedev.net/page/resources/_//feature/fprogramming/opengl-frame-buffer-object-101-r2331)
there is a sentence says "A renderbuffer are just objects which are used to support offscreen rendering, often for sections of the framebuffer which don’t have a texture format associated with them such as the stencil or depth buffer."
Why framebuffer does not have a texture format associated with depth buffer? Does this mean I cannot render depth to texture directly using a framebuffer?