next up previous contents
Next: 18.2.6 Putting It All Up: 18.2 Lighting Equations Previous: 18.2.4 Diffuse Term

18.2.5 Specular Term

The specular term also depends on whether light falls directly on the vertex. If tex2html_wrap_inline8257 is less than or equal to zero, there is no specular component at the vertex. (If it's less than zero, the light is on the wrong side of the surface.) If there's a specular component, it depends on the following:

Using these definitions, here's how OpenGL calculates the specular term:
displaymath8265
However, if tex2html_wrap_inline8267, the specular term is 0.



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