Example code for the OpenGL Shading Language Cookbook