Drawing Shadows

The basic steps in drawing shadows in OpenGL are

  1. display the polygon(s) in shadow projection plane

  2. push the modelview matrix

  3. call the shadow projection transformation function

  4. draw the object to be shadowed - this actually draws the shadow

  5. pop the modelview matrix

  6. draw the object to be shadowed