modified light attenuation calculation, separated cutoff and attenuation factor