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

background{ color rgb < 0.75, 0.80, 0.85 > }

#declare raio = 2.000;

#declare tinta_A =
  texture {
    pigment { color rgb < 0.10, 0.80, 1.00 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
  }

#declare tinta_B =
  texture {
    pigment { color rgb < 1.00, 0.80, 0.10 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
  }

#declare tinta_C =
  texture {
    pigment { color rgb < 0.40, 0.30, 0.80 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
  }

#declare tinta_D =
  texture {
    pigment { color rgb < 0.10, 0.10, 1.00 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
  }

#declare haste =
  cylinder {
    <0,0,0>,
    <0,0,-18>,0.2
    texture{tinta_A}
  }

plane{z,-18
  texture{
  pigment{checker color rgb <0,0,1>,
                  color rgb <0,1,0>
  }
  }
}

bicubic_patch{
  type 1
  u_steps 3
  v_steps 3
  <0,0,0>,
  <4,6,0>,
  <8,-6,0>,
  <12,0,0>,
  <0,0,-2>,
  <4,6,-2>,
  <8,-6,-2>,
  <12,0,-2>,
  <0,0,-4>,
  <4,6,-4>,
  <8,-6,-4>,
  <12,0,-4>,
  <0,0,-6>,
  <4,6,-6>,
  <8,-6,-6>,
  <12,0,-6>
  // pigment{uv_mapping image_map{jpeg "flag.jpeg"}}
  pigment{uv_mapping image_map{jpeg "jsflag.jpg"}}
}

object{haste}

// Original camera parameters:
// #local cam_ctr = <5.00,5.00,0.00>
// #local cam_vec = (<0.00,31.00,8.00>-<5.00,5.00,0.00>)
// #local cam_sky = z

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