Phong algorithm example.

In this variant of the code, I show an implementation of the Phong reflectance algorithm, which defines ambient, diffuse and specular components for a surface.

You can also see an example of a for loop, used to add up the contributions from three light sources.