// Last edited on 2007-07-24 01:37:55 by stolfi
// Processed by remove-cam-lights

background{ color rgb < 0.50, 0.70, 0.80 > }

#declare tinta_prata =
  texture {
    pigment { color rgb < 0.5, 0.5, 0.5 > }
    finish { ambient 0.2 diffuse 0.8 phong 8 reflection 0.5 roughness 0.05 brilliance 10 }
  }

#declare tinta_ouro =
  texture {
    pigment { color rgb < 0.60, 0.50, 0.20 > }
    finish { ambient 0.3 diffuse 0.7 phong 8 reflection 0.5 roughness 0.05 brilliance 10 }
  }

#declare tinta_chao =
    texture {
 pigment { color rgb < 0.10, 0.10, 0.10 > }
 finish { ambient 0.6 diffuse 10 phong 10 reflection 0.1 roughness 0.05 brilliance 10 }
    }

#declare tinta_bandeira =
    texture {
 // pigment { uv_mapping image_map { png "bandeira.png" }}
 pigment { uv_mapping image_map { jpeg "jsflag.jpg" }}
 finish { ambient 0.5 }
    }

#declare chao =
  box {
    < -8, -8, -1 >,
    < 8, 8, 0 >
  texture { tinta_chao }
}

#declare pano =
bicubic_patch {
 type 1
 u_steps 3
 v_steps 3

 <0, 0, 0>
 <2, 3, -0.2>
 <-2, 6, -0.6>
 <0, 9, -1>

 <-2, 0.5, 2>
 <3, 3, 1.8>
 <3, 6, 1.4>
 <2, 8, 1>

 <-2, 0.5, 4>
 <3, 3, 3.8>
 <-3, 6, 3.4>
 <2, 8, 3>

 <0, 0, 6>
 <3, 3, 5.8>
 <-3, 6, 5.4>
 <0, 9, 5.0>

 texture { tinta_prata }
}

#declare haste =
union {
 object {
  cylinder {
   <0, 0, 0>,
   <0, 0, 20>, 0.5
   texture { tinta_prata }
  }
 }
 object {
  cone {
   <0, 0, 20>,  0.5,
   <0, 0, 21>, 0
   texture { tinta_prata }
  }
 }
 object {
  sphere {
   <0, 0, 21>  0.5
   texture { tinta_ouro }
  }
 }
 object {
  cone {
   <0, 0, 21>, 0,
   <0, 0, 22>,  0.5
   texture { tinta_prata }
  }
 }
 object {
  cone {
   <0, 0, 22>,  0.5,
   <0, 0, 24>, 0
   texture { tinta_prata }
  }
 }
 object {
  torus {
   0.8, 0.4
   texture { tinta_ouro }
   rotate 90 * x
  }
 }
 object {
  torus {
   0.6, 0.3
   texture { tinta_ouro }
   rotate 90 * x
   translate 0.5*z
  }
 }
 object {
  torus {
   0.5, 0.2
   texture { tinta_ouro }
   rotate 90 * x
   translate 0.9*z
  }
 }
}

object { chao }

object { haste }

object {
 pano
 translate 14 * z
 texture { tinta_bandeira }
 }

// Original camera parameters:
// #local cam_ctr = <0.00,2,8.00>
// #local cam_vec = (<15.00,8.0,3.00>-<0.00,2,8.00>)
// #local cam_sky = z

#include "camlight.inc"
camlight(<0.00,2,8.00>,<10,10,10>,20.0,z,1.0)