Kyle Anderson


The Lab2 renderer adds shading and lighting to the renderer. Lighting is calculated by using the Phong Illumination model (with the assumption that 85% of light is diffuse and 15% is specular). The user can choose among flat, Gouraud, and Phong shading techniques.

While the program is running, you can press 1-4 to choose among the 4 camera angles. Pressing 'f', 'g', or 'p' will choose flat, Gouraud, or Phong shading, respectively.
Press 'q' or 'esc' to exit.

NOTE: This program is broken... I've been debugging it for literally a month now with only slight progress. There seems to be a problem with the illumination routine (or maybe just the vertex-normal calculation) and there is a problem with interpolation for Phong and Gouraud shading...


Flat Shading


Gouraud shading ... sort of


Phong shading (at least it is trying to...)