Home Reference VEX VEX functions 

atten vex function

Contexts: chop , cop , displace , fog , image3d , light , photon , pop , shadow , sop , surface

Tags: interp, math, shading

Computes attenuated falloff.

  1. float atten(float attenuation, float distance)

Computes attenuated falloff. This is equivalent to attenuation / (attenuation + distance).