Category Archives: Quick N Dirty Gfx Samples

OpenGL Framebuffer Object Example

Purpose of the Sample:

Demonstrates how to create a framebuffer object and use the color buffer attached to the frame buffer object as input into a full-screen post-processing effect. This example builds on the Stencil Buffer Effect tutorial.

CGame.h

CGame.cpp

vertexPass0.glsl – Draw the Filled Man

fragmentPass0.glsl – Shade the Filled Man with his Normals

vertexStencil.glsl – Render the Quad Mask

fragmentStencil.glsl – Render the Quad Mask

vertexPass1.glsl – Render the Wireframe Man

fragmentPass1.glsl – Render the Wireframe Man

vertexBlit.glsl – Wavy FullScreen Post Processing Effect

fragmentBlit.glsl – Wavy FullScreen Post Processing Effect

Download Sample App