atten
VEX function
Computes attenuated falloff.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
-
float atten(float attenuation, float distance)
Computes attenuated falloff. This is equivalent to attenuation / (attenuation + distance).