Computing Phong Illumination

Another formulation

The cos term of Phong's specular illumination could be replaced using the following relationship.

The V vector is the unit vector in the direction of the viewer and the R vector is the mirror reflectance direction.

The vector R can be computed from the incoming light direction and the surface normal as shown below.
The following figure illustrates this relationship.