Posted Monday, 5 May, 2008 - 16:38 by Inertia in
Seems the FrameBufferObject example is missing in 0.9.1 so here it is.
- Create an empty color and depth 2D texture.
- Create a FBO, attach color and depth textures and and enable it.
- Render some random triangles into the textures using the FBO.
- Disable FBO. (end of initialization)
- Each frame, draw the color and depth textures rendered earlier as quads on the screen. (color is left, depth is right)