Advanced OpenGL Lighting
- Spotlights
- Light source shines in a cone, in a particular direction
- GL_SPOT_DIRECTION & GL_SPOT_CUTOFF options of glLight
- Attenuation
- Light intensity falls off with distance
- GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, GL_QUADRATIC_ATTENUATION
options of glLight
- Two-sided lighting
- Allows backs of polygons to reflect light; can be different
material than front
- GL_LIGHT_MODEL_TWO_SIDE option of glLightModel; GL_BACK option of
glMaterial