
#ifndef ( R_Earth )
   #declare   R_Earth    =   6371.000000*KM ;
#end

#ifndef ( R_Moon )
   #declare   R_Moon     =   1737.000000*KM ;
#end

// self lit
#declare earth1 = sphere {
   <0,0,0> 1
   texture {
      pigment{
         image_map {
            jpeg "earthmap10k.jpg"
            map_type 1  
         }
      }
      finish { ambient 0.7 diffuse 0.5 } 
   }
}

// unlit
#declare earth0 = sphere {
   <0,0,0> 1
   texture {
      pigment{
         image_map {
            jpeg "earthmap10k.jpg"
            map_type 1  
         }
      }
      finish { ambient 0.01 diffuse 1.4 } 
   }
}


// scaled 
#declare moon1 = sphere {
   <0,0,0> ( R_Moon/R_Earth )
   texture {
      pigment{
         image_map {
            jpeg "MoonMap_2500x1250.jpg"
            map_type 1  
         }
      }
      finish { ambient 0.7 diffuse 0.5 } 
   }
}

