Add attenuation processing for light