CompSci 344
Spring 2015
Computer Graphics

Programmable Pipeline

State of the Art: GPUs

Pipeline History

Pipeline Steps

Shaders

Using Shaders in OpenGL

  1. Create Shaders: allocate handles to shaders
  2. Specify Shaders: load strings that contain shader source
  3. Compile Shaders: compile source (translate source and check for errors)
  4. Create Program Object: programs controls the shaders
  5. Attach Shaders to Programs: attach shaders to program object via handle
  6. Link Shaders to Program: link all programs together (verify variables match)
  7. Enable Program: bind shaders to be run for subsequent geometry

Notes

Examples

Other Uses

References