ABSTRACT

In this appendix, we demonstrate how to work with the default illumination model implemented in all of today’s graphics hardware. This model is known as the Phong illumination model. An illumination model computes a pixel color based on the visible geometry and the lighting conditions of the scene. Typically, input to an illumination mode includes:

• Object geometry. Describes the shape of the geometry. This information is typically defined as a normal vector at each vertex.