Add an attenuation based on depth