Just Download the codes. And open the 18290034.html thats all.
It calculates ambient,diffuse and specular lightning on the log object.
I used the codes given below. (for initshaders and MV)
https://www.cs.unm.edu/~angel/WebGL/ for those doesn't know phong model ==> https://en.wikipedia.org/wiki/Phong_reflection_model
