next up previous contents
Next: 18.2.5 Specular Term Up: 18.2 Lighting Equations Previous: 18.2.3 Ambient Term

18.2.4 Diffuse 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:

tex2html_wrap_inline8247

where:

tex2html_wrap_inline8249 is the unit vector that points from the vertex to the light position (GL_POSITION).
tex2html_wrap_inline8251 is the unit normal vector at the vertex.



David Blythe
Thu Jul 17 21:24:28 PDT 1997