Remember to always turn on depth buffering when lighting 3D scenes. This will ensure you are always viewing the surfaces that are closest to the camera! Run the program. Notice how the sphere appears as a dull flat colored red ball.
The sphere looks flat because it only has ambient reflection defined. The entire code can be found under Example6-2/Example6-2.cpp.