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

#include "eixos.inc"
#include "colors.inc"
#include "textures.inc"
#include "stones.inc"

#declare tx_fosca =
  texture{
    pigment{ color rgb < 1.00, 0.80, 0.10 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_fosca2 =
  texture{
    pigment{ color rgb < 0.70, 0.20, 0.30 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_fosca3 =
  texture{
    pigment{ color rgb < 0.30, 0.50, 0.40 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_fosca4 =
  texture{
    pigment{ color rgb < 0.15, 0.70, 0.35 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_vidro =
  texture{
    pigment{ color rgb < 0.85, 0.95, 1.00 > filter 0.70 }
    finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 }
  }

#declare tx_xadrez =
  texture{
    pigment{ checker color rgb < 0.10, 0.62, 0.20 >, color rgb < 1.00, 0.97, 0.90 > }
    finish{ diffuse 0.9 ambient 0.1 }
    scale 2.0
  }

#declare roleta = seed(315);

#macro quadro(tt)

#declare ctt = cos(2*pi*tt);

#declare stt = sin(2*pi*tt);

#declare att = abs(70*sin(8.9+2*pi+tt));

#declare texto =
        text {
                ttf "alger.ttf" "WD" 0.2, 0.0
                texture{T_Stone12}
                rotate <90, 0, 90>
                translate -0.6 * y
        }
#declare asa = box {<0,0.3,0>, <-0.1, 1.3, 0.5> rotate att*x texture{tx_fosca}}

#declare asas =
        union{
                object{asa}
                object{asa rotate 180*z translate -0.8*y}
        }

plane {
    z, -0.01
    texture{tx_xadrez}
}

object{ eixos(3.00) }

object{
        union{
                object{ texto}
                object{ asas translate <0.1, 0.5, 0>}
        }
        translate <0, stt, 1.5+ctt>
}

#end

quadro(clock)

#include "camlight.inc"
#declare centro_cena = < 0.00, 0.00, 1.00 >;
#declare raio_cena = 6.0;
#declare dir_camera = < 14.00, 7.00, 4.00>;
#declare dist_camera = 16.0;
#declare intens_luz = 1.00;
camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)