float atten(float attenuation, float distance)
Computes attenuated falloff. This is equivalent to attenuation /
(attenuation + distance)
.
light | |
math |
|
shading |
|