Phong Shading (WebGL)

Edit the shader code below and click on the button to see the result:

Your browser does not support the canvas element

Ambient reflection coefficient (ka):1.0
Ambient color:
  Light position:
Diffuse reflection coefficient (kd):1.0
Diffuse Color:
Specular reflection coefficient (ks):1.0
Specular Color:
 Background Color:
Z: -1

Based on a WebGL applet by Prof. Thorsten Thormählen. Modified by Johannes Kehrer for educational purpose.