Illumination and Shading
[prev][next]

Phong Algorithm

For each visible polygon
  For each scanline
    Calculate normals at edge intersections (span
           extrema) by linear interpolation

    For each pixel on scanline
      Calculate normal by interpolation of normals
	   at span extrema

      Evaluate illumination model with that normal


[prev][next]
Made by dynaPage 0.2