next up previous contents
Next: 23.2.3 Ambient Term Up: 23.2 Lighting Equations Previous: 23.2.1 Attenuation Factor

23.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 $(\max \{\hat{v} \cdot \hat{d}, 0\})$ where $\hat{v}$ and $\hat{d}$ 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.


next up previous contents
Next: 23.2.3 Ambient Term Up: 23.2 Lighting Equations Previous: 23.2.1 Attenuation Factor
David Blythe
1999-08-06