Next:
23.2.2 Spotlight Effect
Up:
23.2 Lighting Equations
Previous:
23.2 Lighting Equations
23.2.1 Attenuation Factor
The attenuation factor is defined to be:
where
d
= distance between the light's position and the vertex
k
_{c}
=
GL_CONSTANT_ATTENUATION
k
_{l}
=
GL_LINEAR_ATTENUATION
k
_{q}
=
GL_QUADRATIC_ATTENUATION
If the light is directional, the attenuation factor is 1.
David Blythe
1999-08-06