// Last edited on 2003-12-13 18:00:18 by stolfi
#include "colors.inc"

// Exemplo de arquivo de descricao de cena para POV-ray

// ======================================================================

#declare ctr = < 1.00, 0.00, 0.00 >;
#declare camDir = <0, 0, 5.5>;

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

// ======================================================================
// FONTES DE LUZ

light_source {
  10 * < 20,-15,18 >            // Posição da lâmpada.
  color rgb 1.2 * < 1.00, 1.00, 1.00 >   // Intensidade e corda luz.
}

light_source{
 10 * <20,15 ,18>
color rgb 1.2 * < 1.00, 1.00, 1.00 >
}

light_source{
 10 * <-20,15 ,18>
color rgb 1.2 * < 1.00, 1.00, 1.00 >
}

// ======================================================================
// DESCRIÇÃO DA CENA

background{ color rgb < 0.75, 0.80, 0.85 > }

#declare cor_blob1= color SlateBlue;
#declare cor_blob2= color DarkGreen;

#declare tex_transparente1=
  texture{
    finish{
      ambient 0.1 diffuse 0.1
      reflection 0.25
      specular 1 roughness 0.001
    }
  pigment {color cor_blob1 filter 1}
}

#declare tex_transparente2=
  texture{
    finish{
      ambient 0.1 diffuse 0.1
      reflection 0.25
      specular 1 roughness 0.001
    }
  pigment {color cor_blob2 filter 1}
}

blob {
    threshold .1
    sphere { <1,0,0> ,4, 1 scale<2,2,1>}
    sphere { <0.1,1,3>*(0.7+0.5*clock),1 , 1  }
    sphere { <-0.1,0,3>*(0.7+0.5*clock), 1, 1 }
    pigment {
      image_map {png "../txmaps/earth-land.png" map_type 1}
      rotate y*40 rotate x*-20 scale<-1,1,1>
    }
  }