Graphics Shaders: Theory and Practice

Chapter 8 Source Code


This page was last updated: September 14, 2009


ExampleGLIB fileVertex fileFragment fileGeometry fileComments
Julia Set julia.glib julia.vert julia.frag    
Mandelbrot Set mandel.glib mandel.vert mandel.frag    
Pyramid Bump Mapping pyramids.glib pyramids.vert pyramids.frag    
Reflection Cube Mapping reflect.glib reflect.vert reflect.frag   Requires nvnegx.bmp, nvnegy.bmp, nvnegz.bmp, nvposx.bmp, nvposy.bmp, nvposz.bmp, and texture shader
Refraction Cube Mapping refract.glib refract.vert refract.frag   Requires nvnegx.bmp, nvnegy.bmp, nvnegz.bmp, nvposx.bmp, nvposy.bmp, nvposz.bmp, and texture shader
Ripples Bump Mapping ripples.glib ripples.vert ripples.frag    
Texture texture.glib texture.vert texture.frag   For the walls of the rooms