The orbit and the lighting are two different jobs.
sphereLighting does not move the planet. It only finds where the bright spot should sit on the orbiting ball, based on the sun's position.
The circular motion comes from findPointAroundCircle, which returns the x/y point for the ball at each percentage around the orbit.