Import light distance

Calculate light distance from quadratic_attenuation.