// Exercício número 2 - Aula de 19/05/2001
// Anderson Supriano - RA 7852



background{ color rgb < 0.95, 0.98, 0.94 > }

light_source {
  < -5, -0, -60 >
  color rgb < 1.00, 1.00, 1.00 >
} 

#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 }
    normal{bumps 0.5 scale 0.5}
}

#declare verde_spotted = 
  texture {
    pigment { color rgb < 0.00, 1.00, 0.00 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
    normal{spotted 0.7 scale 0.5}
}

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

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

camera {
  location  <  0, 0, -50 >
//   location  <  -50, 0, 0 >
//  right     < -1.2, 0.00, 0.00 >
  look_at   <  0, 0, 0 >
} 

#declare rosto = 
blob {
	threshold .3
	sphere { <0, 8, 0>, 12, 1 texture {verde_spotted} }
	sphere { <0, -8, 0>, 12, 1 texture {verde_spotted} } 
}

#declare olho_esquerdo = 
difference {
	sphere { <-3, 8, -7>, 1.5 texture {verde} }
	cylinder { <-3, 8, -30>, <-3, 8, 100> 1.00 texture {preto} }
}

#declare olho_direito = 
difference {
	sphere { <3, 8, -7>, 1.5 texture {verde} }
	cylinder { <3, 8, -30>, <3, 8, 100>, 1 texture {preto} }
}

#declare nariz =
blob {
	threshold .8
	sphere { <0, 1.3, -5.5>, 2, 1 texture {verde} }
	sphere { <0, -0.5, -5.5>, 2, 1 texture {verde} }
	sphere { <-.8, -.9, -5.3>, 1.2, 1 texture {verde} }
	sphere { <.8, -.9, -5.3>, 1.2, 1 texture {verde} }
}
	
#declare boca = 
blob {
	threshold .3
	sphere { <-2, -8, -6>, 3.5, 1 texture {preto} }
	sphere { <0, -8, -6>, 3, 1 texture {preto} }
	sphere { <2, -8, -6>, 3.5, 1 texture {preto} }
}	

#declare antena1 =
cone { <-5, 12, -4>, .7, <-6, 17, -4>, 1.2 texture {verde_bozo} }

#declare antena2 =
cone { <5, 12, -4>, .7, <6, 17, -4>, 1.2 texture {verde_bozo} }

union {
	object {rosto}
	object {olho_esquerdo}
	object {olho_direito}
	object {nariz}
	object {boca}
	object {antena1}
	object {antena2}
}