// Exemplo de arquivo de descricao de cena para POV-ray
// Last edited on 2000-09-21 20:06:05 by stolfi

 #include "colors.inc"

  camera {
    location <-10, 0, -40>
    look_at 0
    angle 25
  }

  background { color Gray25 }  //to make the patch easier to see
  light_source { <300, 300, -700> White }
  plane { y, -12
    texture {
      pigment {
        checker
        color Green
        color Yellow
      }
    }
  }

  #declare TeePeeTex = texture {
    pigment { Gold }
    finish {
      ambient .1
      diffuse .4
      specular 1
      roughness 0.001
      reflection .5
      metallic
    }
}

#declare A1 =  <  -4,  -3,   7>;
#declare A2 =  <  -2,  -3, 8.3>;
#declare A3 =  <  -1,  -3, 8.8>;
#declare A4 =  <   0,  -3,   9>;
#declare A5 =  <  -5,  -1,   0>;
#declare A6 =  <  -4,   2,   0>;
#declare A7 =  <  -2,   4,   0>;
#declare A8 =  <   0,   5,   0>;
#declare A9 =  <   0,  -5,  -6>;
#declare A10 = < 0.3,  -4,  -6>;
#declare A11 = < 0.6,  -3,  -6>;
#declare A12 = <   1,  -2,  -6>;
#declare A13 = <  -1,   0,  -15>;
#declare A14 = <-0.6, 0.9,  -15>;
#declare A15 = <-0.3, 0.5,  -15>;
#declare A16 = <   0,   1,  -15>;

#declare carro = bicubic_patch {
    type 1 flatness 0.1000 u_steps 4 v_steps 4,
    A1, A2, A3, A4,
    A5, A6, A7, A8,
    A9, A10, A11, A12,
    A13, A14, A15, A16
    texture {
      TeePeeTex
     }
     //rotate -90*x // to orient the object to LHC
     //rotate 25*y  // to see the four "legs" better
  }


//sphere { A1, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A2, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A3, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A4, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A5, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A6, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A7, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A8, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A9, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A10, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A11, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A12, 0.3 texture {pigment {color rgb <1,0,0>}}}
//sphere { A13, 0.3 texture {pigment {color rgb <1,0,0>}} rotate 230*y}
//sphere { A14, 0.3 texture {pigment {color rgb <1,0,0>}} rotate 230*y}
//sphere { A15, 0.3 texture {pigment {color rgb <1,0,0>}} rotate 230*y}
//sphere { A16, 0.3 texture {pigment {color rgb <1,0,0>}} rotate 230*y}

object {carro rotate 230*y}
object {carro scale <-1,1,1> rotate 230*y}


  plane { y, 500
    texture {
      pigment { SkyBlue }
      finish { ambient 1 diffuse 0}
     }
     texture {
       pigment {
         bozo
         turbulence .5
         color_map {
           [0 White]
           [1 White filter 1]
         }
       }
       finish { ambient 1 diffuse 0 }
       scale <1000, 250, 250>
       rotate <5, 45, 0>
    }
  }