Light adaptation controls visual sensitivity by adjusting the speed and gain of the response to light