The Moon is about the same distanse from the Sun as the Earth. Therefore, the surface of the moon is similarly illuminated as the surface of the earth. Like the earth, different parts of the moon are differently illuminated in relation to each other at any given time.