The total flux of energy transferred from one object to another varies according to the distance between the two objects.  This relationship is known as the inverse-square law.
Flux is proportional to 1/d2
We expect the sunshine a planet receives to decrease as the distance from the sun increases.