Example code for the OpenGL 4.0 Shading Language Cookbook