// Last edited on 2003-12-13 20:47:52 by stolfi
#include "colors.inc"

background{White}
#declare ctr = <0,0,0>;
#declare camDir = <0,0,-9>;

camera {
  location   ctr + 1.00*camDir
  right      1.00*x
  up         1.00*y
  sky        y
  look_at    ctr
}

light_source{
  <1500,2500,-2500> 
  color 1.2 * White
}

light_source{
  <1200,2700,-2500> 
  color 0.8 * White
}

// Terra
#declare fig =
  blob {
    threshold .65
    sphere { <0,0,0>, 3, 3 pigment {
      image_map {png "earth.png"  map_type 1} 
      rotate <-15,-190-40,0>
    } }
    cylinder {
      <2,0,0>, <2.00001 + 1.5*clock,0,0>, .5+ 0.5*clock, 1  pigment {Green} 
      finish { phong 1 }
    }
  }

object{ fig 
  rotate y*(360*clock + 45)
}

// universo
box {
  <-100, -100, 100>  // one corner position <X1 Y1 Z1>
  < 100,  100,  90>  // other corner position <X2 Y2 Z2>
//  pigment {image_map {gif "../txmaps/pleiades.gif"} scale 130* <1,1,1>}
  pigment {image_map {png "../txmaps/jwm8.png"} scale 100* <1,1,1>}
}