Next: 23.2.5 Specular Term
Up: 23.2 Lighting Equations
Previous: 23.2.3 Ambient Term
The diffuse term needs to take into account whether light falls directly on
the vertex, the diffuse color of the light, and the diffuse material
property:

where:

l = (l_{x}, l_{y}, l_{z}) is the unit vector that points from the vertex to the light position (GL_POSITION).

n = (n_{x}, n_{y}, n_{z}) is the unit normal vector at the vertex.
David Blythe
19990806