next up previous contents
Next: 18.2.3 Ambient Term Up: 18.2 Lighting Equations Previous: 18.2.1 Attenuation Factor

18.2.2 Spotlight Effect

The spotlight effect evaluates to one of three possible values, depending on whether the light is actually a spotlight and whether the vertex lies inside or outside the cone of illumination produced by the spotlight:

To determine whether a particular vertex lies within the cone of illumination, OpenGL evaluates tex2html_wrap_inline8239 where tex2html_wrap_inline8241 and tex2html_wrap_inline8243 are as defined above. If this value is less than the cosine of the spotlight's cutoff angle (GL_SPOT_CUTOFF), then the vertex lies outside the cone; otherwise, it's inside the cone.



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