Friday, February 15, 2013

Graphics Assignment 5

After I was done with assignment 4, assignment 5 was pretty easy

For making the specular light work, we calculated the dot product between ViewVector and the Normal of the surface. This was multiplied with the dot product of LightDirection and the normal because we did not want light on the opposite side of the Mesh.

Finally exponent was used to define the texture of the mesh.

Download Code


No comments:

Post a Comment