Answer: Brightness consistency
There are three types of perceptual consistency
Types of Perceptual Constancy: Shape, Size, and Brightness Size constancy
Since the moon and sun affect light, brightness consistency is occurring.
Brightness constancy is our visual ability to perceive objects as having the same level of brightness even though the level of lighting changes.