// Exemplo de arquivo de descricao de cena para POV-ray
// Last edited on 2003-03-18 18:00:00 by evandro

#include "colors.inc"

background{White}

camera {
  angle 15
  location <5,0,42>
  look_at <-1.5,-1,0>
}

light_source { <5, 0, 20> color White }


#declare cor_espelho = < 0.80, 0.80, 0.20 >;

#declare tx_espelho =
  texture {
    pigment { rgb cor_espelho }
    finish {
      ambient 0.05 diffuse 0.05
      reflection cor_espelho
      specular 0.20 roughness 0.05
    }
  }

#declare cor_cristal = < 0.20, 0.20, 0.70>;

#declare tx_cristal =
  texture {
    finish {
      ambient 0.1 diffuse 0.1
      reflection 0.25
      specular 1 roughness 0.001
    }
    pigment { color cor_cristal filter 1 }
  }


#declare piso =
  plane { <0, 1, 1>, -5 pigment {Quartz} normal {granite 2 scale 5} }

#declare cano_da_arma =
  difference {
    cylinder { <0, 0, 0>, <-3, 0, 5>, 1.0 texture { tx_espelho } }
    cylinder { <0, 0, 0>, <-6, 0, 10>, 0.5 pigment {Black} }
  }

#declare tambor =
  torus { 1.5, 0.50 rotate <90, 0, 0> texture {tx_espelho} }

#declare manopla =
  cone { <0, 0, 0>, 1, <2, -2, -2>, 1.50  texture {tx_espelho} }

#declare haste =
  blob {
    threshold 0.75
    cylinder { <-2.6, 0, 4>, <-3.2, -3, 3.75>, 0.75 1 }
    cylinder { <-1, -3.5, 4>, <-5, -2.5, 3>, 0.75 1 }
    texture { tx_cristal }
    finish { phong 1 }
  }

#declare porta_copo =
  difference {
    cylinder { <0, 0.0, 0>, <0, 1, 0>, 1.0 }
    cylinder { <0, 0.5, 0>, <0, 2, 0>, 0.5 }
    rotate <10, 0, -10>
    texture { tx_cristal }
    interior { ior 2.0 }
  }


union {
  object { piso }
  object { cano_da_arma }
  object { tambor rotate <0, -40, 0> }
  object { manopla }
  object { haste }
  object { porta_copo translate <-1, -3.5, 4> }
  object { porta_copo translate <-5, -2.5, 3> }
}