A minor change to the light attenuation calculation