posted by Eugenia Loli on Sun 12th Mar 2006 20:43 UTC
In this example, Randi J. Rost applies a brick pattern to an object. The brick pattern is calculated entirely within a fragment shader. This example consists of three essential components: the source code for the vertex shader, the source code for the fragment shader, and the application code that initializes and uses these shaders. It focuses on the vertex and fragment shaders.