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.



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

Share It!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.