Attenuation of the light according to ambient luminiosity