Modify the opengl program from Homework 3 to model the moon, and planet as solid spheres.
The motion should be the same as in Homework 3. The planet should revolve around the sun once every 365 "days" and the moon should revolve around the planet once every 30 "days". The planet should rotate on its axes once a "day". A "day" is an interval chosen by the you, but the user should be able to double the length of the "day" by clicking on the left mouse button and half the length of "day" by clicking on the right mouse button.
Using the keyboard or menus the program should be able to enable and disable lighting. When lighting is disabled the planet, moon and sun should be treated as blue, grey, and off-white solid spheres. When lighting is enabled the sun should be treated as an off-white diffuse light source with white specular component, and the earth and moon should be treated as solid spheres. The material properties should be adjusted to make the earth blue-green with white highlights, and the moon grey with more diffuse white highlights.
The view point of the orbits should be set as in Homework 3, that a) is as in planet.c and b) 45 degrees above the ecliptic (the plane on which all three object lie) by typing a 'V' or 'v'. A second 'V' or 'v' should change the view back.