// Last edited on 2003-03-19 18:41:12 by stolfi
// MC930A Segunda Atividade de Laboratório utilizando POV-ray
// Autor: Mário Riudoms Sangenis  -  RA: 992198

#include "colors.inc"
#include "textures.inc"

background{ color rgb < 0.20, 0.20, 0.20 > }

light_source {
  < 15.00, 30.00, -50.00 >
  color rgb 1.4*< 1.00, 1.00, 1.00 >
} 

camera {
  location  <  0.00, 3.00, -20.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, 0.00, 0.00 >
} 


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

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

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

// Aqui está a cena, finalmente:

union { 
  blob {
    threshold .3
    sphere { <7.5,0,0>, 3, 1 pigment {Blue_Sky3} }
    sphere { <3.5,0>, 4, 1 pigment {Sapphire_Agate} }

    sphere { <-2,0,0>, 5, 1 pigment {Blood_Marble} }
    sphere { <-7.5,0,0>, 4, 1 pigment {Red_Marble} }

    sphere { <-2,5,0>, 3, 1 pigment {Jade} }
    sphere { <-2,-5,0>, 3, 1 pigment {Jade} }

    cylinder { <7.5,0,2.5>, <7.5,0,-2.5>, .5, 1 pigment {Red} }
    finish { phong 1 }
  }

}