// Trabalho 2 de Computacao Grafica - Stolfi
// Solange Tieko Sakaguti - 007847

background{ color rgb < 1,1,0 > }

light_source {
  < 50.00, 50.00, 50.00 >
  color rgb < 1.00, 1.00, 1.00 >
} 

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

#declare azul =
  texture { 
  pigment {color rgb <0,0,1>}
  finish {diffuse .5 specular .5 roughness .005 ambient .1}
}

#declare cilindro =
  cylinder {
    <0,0,-.5>,
    <0,0,-1>, 
    .1 
    texture {azul}
}

//#declare cilindro_pe1 = 
//  cylinder {
//    <>,
//    <>,
//    .1
//    texture {azul}
//}

//#declare cilindro_pe2 =
//  cylinder {
//    <>,
//    <>,
//    .1
//}





  
blob {
  threshold .65
  sphere { <.8,-.5,0>, .6, 1 pigment { color rgb < 0,0,1 > }}
  sphere { <0,0,0>, 1.2, 1 pigment { color rgb < 0,0,1 > }}
  sphere { <-.8,-.5,0>, .6, 1 pigment { color rgb < 0,0,1 > }}
  sphere { <-.5,-.5,-1.5>, 1.7, 1 scale <1.5,.4,1.5> pigment { color rgb <0,0,1>}}
//  sphere { <.2,-.3,0>, .}
  finish { phong 1 }
}
  
object {cilindro}