Shutter time variation or mechanical iris closing depending on the amount of incident light to change the exposure?
Otherwise with any direct source of light in an image it would immediately overexpose (in some low light cameras that could even damage the sensor). It's super impressive.