// Last edited on 2003-04-12 22:56:00 by stolfi
#include "colors.inc"
#include "stones.inc"

background{ 0.8*White }
camera {
  location  1.1*<0,2,-9.5>
  right 1.2*x  up 0.9*y  sky y
  look_at  <0,-0.3,0>
}

light_source { 10*<15, 10, -15> color 1.1*White }

#declare cor_portacopo  = < 0.5, 0.5, 0.9 >;

#declare tx_portacopo = 
   texture{
      finish{
       ambient 0.1 diffuse 0.1
       reflection 0.25
       specular 1 roughness 0.01
      
     }
     pigment { color cor_portacopo filter 1}
   }



#declare anel = torus {
     0.8, 0.2
     translate <-5.3,0.8,0>      	
     texture { tx_portacopo }
      interior {ior 2.0}
  }

#declare logotipo =
  
    text {
    ttf "arial.ttf"
    "Senhor dos Toroides"
    0.3 , 0
    translate <-3.7,0,0>
    rotate x * 90
    // faltava textura - acrescentada por stolfi
    texture { 
      pigment { color rgb < 1.00, 0.80, 0.05 > }
      finish { ambient 0.3 diffuse 0.5 reflection 0.20 specular 0.3 roughness 0.005 }
    }  
    }

object {
    
    anel
    #if (clock > 0.5)
    rotate x * (90* clock)
    #end
  }
    
object { 
    
     logotipo

#if (clock < 0.5)
      translate <0, 5- 5 * (clock/0.5),0>
#else
      rotate x * (-90*clock)
#end
  
     }


plane {

   y, -2
  pigment { checker color White color rgb <0.9,0.9,0.9>}

   }