WebGL Beginner's Guide - Chapter 3

Goraud Shading + Phong Reflection Model

Final Color = Ia + Id + Is

Your browser does not support the HTML5 canvas element.
Light Color (Light Diffuse Term):
Sphere Color (Material Diffuse Term):
Light Ambient Term:0.03
Material Ambient Term:1.0
Light Specular Term:1.0
Material Specular Term:1.0
X:-0.25
Shininess:10.0
Y:-0.25
Background Color (gl.clearColor):
Z: -0.25

This model has three terms:

However, the diffusive and specular terms are only taken into account if the Lambert term is larger than zero.

In this case: I = Ia + Id + Is, otherwise (Lambert term <= 0):I = Ia