// Exemplo de arquivo de descricao de cena para POV-ray
// Last edited on 2003-05-31 15:18:10 by stolfi

#include "colors.inc"

#declare imgname = "capeleto.gif";

#declare ctr = <0,0.5,0>;
camera {
  location ctr + 0.5 * <0.1, 1.5, 5> 
  right 1.0*x  up 0.50*y  sky y
  look_at ctr
}

light_source { <-1000,+500,+1000> color 1.2*White }
light_source { <+1000,+300,+1000> color 0.8*White }
light_source { <  +10, +50,+1000> color 0.4*White }

background { color Gray75 }

#include "stones.inc"
#include "textures.inc"

#declare cranio =
  cylinder {
    <-0.55, +0.28, 0>,
    <-0.55, +0.88, 0>,
    0.32
  }

#declare olho =
  sphere {
    <0,0,0>,
    0.02
  }

#declare nariz =
  cone {
    <0,0,0>, 0.09,
    <0,0.15,0>, 0.001
  }

#declare cena = 
union {
  difference {
    object { cranio }
    union {
      object { olho scale <4,1,1> rotate <0,-20,0> translate <-0.3, +0.6, +0.26> }
      object { olho scale <4,1,1> translate <-0.56, +0.6, +0.30> }
    }
  }
  object { nariz translate <-0.46, +0.5, 0.29> }
  pigment {
    image_map {gif imgname}
  }
  translate <0.55, 0, 0>
  rotate <0,-20,0>
}

object { cena }
object { cena rotate -53*y translate -0.8*x }
object { cena rotate +53*y translate +0.8*x }