Final render
Click or drag on the sphere to inspect a normal
ambient + diffuse + specular
Selected point — unclamped → displayed
→
Interactive OpenGL 1.1 model
Adjust the material, light and vectors. The large render shows their clamped sum; the three smaller views isolate exactly where each part comes from. This is one directional light, so attenuation f = 1.
Every number below is read straight off the controls and the point you selected on the sphere.
L points from the surface towards the light; V points towards the viewer. Select another point on the sphere to change N and see both dot products update.