Next: 23.2.2 Spotlight Effect
 Up: 23.2 Lighting Equations
 Previous: 23.2 Lighting Equations
The attenuation factor is defined to be:
where 
- d = distance between the light's position and the vertex
 - kc = GL_CONSTANT_ATTENUATION
 - kl = GL_LINEAR_ATTENUATION
 - kq = GL_QUADRATIC_ATTENUATION
 
If the light is directional, the attenuation factor is 1. 
David Blythe
1999-08-06