next up previous contents
Next: 20.2.3 Ambient Term Up: 20.2 Lighting Equations Previous: 20.2.1 Attenuation Factor

20.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_inline11546 where tex2html_wrap_inline11548 and tex2html_wrap_inline11550 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.