what  regulates the amount of light that enters through the diameter of the pupil.
The iris regulates the amount of light that enters your eye by adjusting the size of the pupil opening. In bright light, the iris closes (or constricts) and makes the pupil opening smaller to restrict the amount of light that enters your eye. The iris in bright light. In dim light, the iris opens (or dilates) and makes the pupil opening larger to increase the amount of light that enters your eye: The iris in dim light.