A sunroof is opaque (usually metal with the body color on the outside). This roof can either tilt open to vent, slide open to let in light.moonroof is made of glass.So to answer the question, a moonroof is a sunroof made of glass
The problem is, the distinction is becoming lost as more and more people use it incorrectly. Most people today just consider any sort of hole in the roof a sunroof. But in the strictest sense, sunroof=metal, moonroof=glass.
eg
in new corrola n civic its a moonroof sunroof was in old pajero