LightAttenuation¶
-
class
LightAttenuation¶ -
NONE= 0¶ No attenuation \(f(d)=1\).
-
LINEAR_SLOW= 1¶ Slow linear attenuation \(f(d)=\frac{2}{d+2}\).
-
LINEAR_FAST= 2¶ Fast linear attenuation \(f(d)=\frac{1}{d+1}\).
-
QUADRATIC_SLOW= 3¶ Slow quadratic attenuation \(f(d)=\frac{1}{d^2+d+1}\).
-
QUADRATIC_FAST= 4¶ Fast quadratic attenuation \(f(d)=\frac{10}{2*d^2+5*d+10}\).
-
PHYSICAL= 5¶ Physically realistic attenuation \(f(d)=\frac{1}{d^2}\).
-