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

#include "colors.inc"
#macro quadro(tt)

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

#declare raio = 2.000;

#declare rotacao = 360*tt*z;

#declare tx_granito =
  texture{
    pigment{
      granite
    }
    finish{ diffuse 0.9 ambient 0.1 }
    scale 2.0
}

#declare tx_marmore =
  texture{
    pigment{
      marble
    }
    finish{ diffuse 0.9 ambient 0.1 }
    scale 2.0
}

#declare asa = prism {
    cubic_spline
        0, // sweep the following shape from here ...
        1, // ... up through here
        6, // the number of points making up the shape ...
        < 3, -5>, // point#1 (control point... not on curve)
        < 3,  5>, // point#2  ... THIS POINT ...
        <-5,  0>, // point#3
        < 3, -5>, // point#4
        < 3,  5>, // point#5 ... MUST MATCH THIS POINT
        <-5,  0>  // point#6 (control point... not on curve)
        pigment { Green }
        scale (x+y+z)/5
}

#declare text_logotipo = object {
        text {
                ttf
                "arial.ttf"
                "E"
                0.5, 0.1
                texture{tx_granito}
                rotate 90*(x+z)
        }
        translate<-.25,-.25,-.25>
}

#declare toroide = torus {
        1,.25
        texture{tx_marmore}
        rotate 90*z
}

#declare logotipo = merge{
        object{text_logotipo}
        object{toroide}
        object {object{asa rotate (90+60*sin(2*pi*tt))*x } translate -1.75*y }
        object {object{asa rotate (-90-60*sin(2*pi*tt))*x } translate 1.75*y }
}

merge {

        object { logotipo translate -2*y rotate 360*tt*z}
}

#end

quadro(clock)

// Original camera parameters:
// #local cam_ctr = <0,0,0>
// #local cam_loc = <0.00,8.00,3.00>
// #local cam_vec = <0.00,8.00,3.00>
// #local cam_sky = z

#include "camlight.inc"
camlight(<0,0,0>,4.699,<10,10,10>,8.544,z,1.2)