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

#declare tinta_amarela = texture {
    pigment { color rgb <1,0.7,0> }
    finish  { diffuse 0.3 specular 0.3 roughness 0.005 ambient 0.2 reflection 0.2}
   }

#declare tinta_verde = texture {
    pigment { color rgb <0,1,0> }
    finish  { diffuse 0.3 specular 0.3 roughness 0.005 ambient 0.2 reflection 0.2}
   }

#declare tinta_prata = texture {
    pigment { color rgb <0.6, 0.6, 0.6> }
    finish  { diffuse 0.3 specular 0.3 roughness 0.005 ambient 0.2 reflection 0.2}
   }

#declare tinta_azul = texture {
    pigment { color rgb <0, 0, 1> }
    finish  { diffuse 0.3 specular 0.3 roughness 0.005 ambient 0.2 reflection 0.2}
   }

#declare tinta_vermelha = texture {
    pigment { color rgb <1, 0, 0> }
    finish  { diffuse 0.3 specular 0.3 roughness 0.005 ambient 0.2 reflection 0.2}
   }

#declare tinta_branca = texture {
    pigment { color rgb <1, 1, 1> }
    finish  { diffuse 0.3 specular 0.3 roughness 0.005 ambient 0.2 reflection 0.2}
}

#declare tinta_preta = texture {
    pigment { color rgb <0, 0, 0> }
    finish  { diffuse 0.3 specular 0.3 roughness 0.005 ambient 0.2 reflection 0.2}
}

plane{ z,-35
 translate - 5*z
 // pigment { uv_mapping image_map {jpeg "Imagem2.jpg"} }
 pigment { uv_mapping image_map {jpeg "jsflag.jpg"} }
}

#declare mastro = box {
     < -1.00, -1.00, -40.00 >, < -0.50, 0.50, 0.00 >
     texture { tinta_branca }
}

union{
 object{mastro}

 bicubic_patch{
  type 1
  u_steps 3
  v_steps 3
  <0,10,0>
  <4,12,1>
  <8,8.5,-1>
  <12,10,0>
  <0,7,0>
  <4,8.5,1>
  <8,5.5,-1>
  <12,3,0>
  <0,4,0>
  <4,5.5,1>
  <8,2.5,-1>
  <12,4,0>
  <0,1,0>
  <4,2.5,1>
  <8,3.5,-1>
  <12,1,0>
  // pigment { uv_mapping image_map {jpeg "Imagem.jpg"} }
  pigment { uv_mapping image_map {jpeg "jsflag.jpg"} }
  rotate 90*x
  rotate -180*y
  rotate -90*z
 }
}

// Original camera parameters:
// #local cam_ctr = <6.00,6.00,00.00>
// #local cam_vec = (<60.00,20.00,30.00>-<6.00,6.00,00.00>)
// #local cam_sky = z

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