A Simple Shading Example in OpenGL Shading Language

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.

One Response

  1. 2006-03-13 10:39 pm