// ====================================================================== // CORES E TEXTURAS //background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = texture{ pigment{ color rgb < 0.80, 0.90, 0.80 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 0.40, 0.40, 0.60 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_pedra = texture{ pigment { color rgb <0.4, 0.2, 0> } finish { diffuse 0.9 ambient 0.1 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.10, 0.32, 0.60 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 12.0 } // ====================================================================== // DESCRIÇÃO DA CENA light_source{<0,1,0.5>, rgb<5,5,5> } difference { prism { 0,3,12, <-1,0>,<1,0>,<1.5,2>,<0,3>,<-1.5,2>,<-1,0>, <-0.9,0.14>,<0.9,0.14>,<1.35,1.94>,<0,2.84>,<-1.35,1.94>,<-0.9,0.14> texture {tx_fosca} } text { ttf "arial.ttf" "text" 0.4, 0 rotate <90,0,90> translate <1,0.5,0.6>} } box {<0.2,-3,-3>, <0.2,3,3> texture{tx_plastico} translate <4,0.5,1.4>} #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 0.00 >; #declare raio_cena = 10; #declare dir_camera = < -5, 2.00, 2.00 >; // 14 7 6 #declare dist_camera = 5 * raio_cena; #declare intens_luz = 0.50; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)