// Last edited on 2003-03-19 19:05:33 by stolfi

#include "colors.inc"
#include "stones.inc"

background{ color rgb < 0.78, 0.73, 0.70 > }

light_source {
  < -2, 0, 10 >
  color rgb < 1.00, 1.00, 1.00 >
} 

light_source {
  < 0.8, 0.5, -5 >
  color rgb < 1.00, 1.00, 1.00 >
} 

//light_source {
//  < 4.00, 10.00, 50.00 >
//  color rgb < 1.00, 1.00, 1.00 >
//} 


camera {
  location  <  0.00, 4.00, 8.00 >
  right     < -1.20, 0.00, 0.00 >
  up        <  0.00, 0.00, 0.90 >
  sky       <  0.00, 1.00, 0.00 >
  look_at   <  0.00, 2.00, 0.00 >
} 

#declare raio = 2.000;

#declare tinta_verde = 
  texture {
    pigment { color rgb 2*< 0.00, 1.00, 0.00 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
  }

#declare tinta_preta = 
  texture {
    pigment { color rgb < 0.00, 0.00, 0.00 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
  }

#declare tinta_azul = 
  texture {
    pigment { color rgb < 0.00, 0.00, 1.00 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
  }

#declare tinta_vermelha = 
  texture {
    pigment { color rgb < 1.00, 0.00, 0.00 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
  }
  

//#declare cabeca =
//  sphere {
//    < 0.00, 2.00, 0.00 >, 1.00 
//    texture { tinta_branca }
//  }

#declare cifrao = 
 blob {
  threshold 0.7
  sphere { <-0.50, 2.00, 0>, .8, 1 texture{tinta_verde} }
  sphere { <-1.30, 1.40, 0>, .8, 1 texture{tinta_preta} }
  sphere { <-0.50, 0.80, 0>, .8, 1 texture{tinta_verde} }
  sphere { <-1.30, 0.20, 0>, .8, 1 texture{tinta_preta} }

  //  cylinder { <-.4, -.5, 0>, <-.2,-.1, 0>, .5, 1 texture{tinta_azul}}
  scale 2
 }

#declare satelites = 
blob {
   threshold 0.7
     
   sphere { < 0.50, 0.00, 0.0>, .4, 1 texture{tinta_azul} }
   sphere { < 0.50, 0.00,-0.5>, .4, 1 texture{tinta_vermelha} }
   sphere { < 0.50,-0.50, 0.0>, .4, 1 texture{tinta_vermelha} }
   sphere { < 1.00, 0.00, 0.0>, .4, 1 texture{tinta_verde} }
   sphere { < 0.00, 0.00, 0.0>, .4, 1 texture{tinta_verde} }
   sphere { < 0.30, 0.00, 0.2>, .2, 1 texture{T_Stone13} }

   scale 3
    }


// Aqui está a cena, finalmente:

union {
  object { cifrao }
  object { satelites }
}