// Last edited on DATE TIME by USER
// Processed by remove-cam-lights

#include "colors.inc"

background{ color rgb < 1, 1, 1 > }

#declare cor_metalico = <0.4, 0.31, 0.25>;
#declare cor_cristal = <0.98, 0.98, 0.98, 0.9>;

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

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

#declare tx_cristal =
   texture {

     finish {
       ambient 0 diffuse 0 reflection 0.5
       refraction 0.85 ior 1.5 phong 0.3 phong_size 60
       specular 1 roughness 0.001
     }
     pigment { color rgbf cor_cristal filter 1}
   }

#declare eixos =

union {

        cylinder {
         <-50, 0, 0>, <50, 0, 0>, 0.1
         pigment { color rgb <1, 0, 0> }
        }

        cylinder {
         <0, -50, 0>, <0, 50, 0>, 0.1
         pigment { color rgb <0, 1, 0> }
        }

        cylinder {
         <0, 0, -50>, <0, 0, 50>, 0.1
         pigment { color rgb <0, 0, 1> }
        }
}

#declare dedo =
  object {
    cylinder {<0,0,0>, <0,0.3,0>, 0.05}
  }

#declare dedos =
#declare tt = clock;
  union {
    object {dedo rotate x*90*clock translate <0, 0.51, 0>}
    object {dedo translate <0, 0.51, 0> rotate z*-45}
    object {dedo rotate x*90*clock translate <0, 0.51, 0> rotate z*-135}
    object {dedo translate <0, 0.51, 0> rotate z*-180}
    texture {amarelo}

  }

#declare mao =
  union {
    object {
      sphere { <0,0,0>, 0.5}
      texture {tx_metalico}

    }
    object {dedos}
  }

#declare antebraco =
#declare tt = clock;
  union {
   cylinder { <0,0,0>, <4,0,0>,0.5}
   object { mao rotate tt*55*z rotate tt*90*x translate <4.5,0,0>}
   pigment{Blue}
  }

#declare braco =
#declare tt = clock;
  union {
    cylinder { <0,0,0> <0,0,4>, 0.5}
    object {antebraco rotate z*tt*45 translate <0,0,4.5>}
    pigment {Red}
  }

#declare apoio =
#declare tt = clock;
  union {
    cylinder { <0,0,0>, <4,0,0>,0.5}
    object {braco rotate x*tt*-25 translate <4.5,0,0>}
    pigment {Green}
  }

union {

  object {
    plane {
      y, 0
      pigment { color rgb <0, 0.5, 0.32> }
    }
    translate <0,-3,0 >
  }

  object {apoio}
}

#include "camlight.inc"
camlight(<0,0,0>,<13,6,17>,1.00,y,1.0)