/* TP 11 */ #include "colors.inc" background{ color rgb <0,0,0 > } #declare Yellow = rgb<255, 255, 0>; #declare Black = rgb < 0.4, 0.4, 0.4 >; #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_fosca = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_white = texture{ pigment{ color rgb < 1.00, 1.00, 1.0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare prisma = prism { 0, 7, 7, <3,5>, <-3,5>, <-5,0>, <-3,-5>, <3, -5>, <5,0>, <3,5> texture { tx_fosca } } /* ====================================================================== DESCRIÇÃO DA CENA */ #include "eixos.inc" object{ eixos(3.00) } difference { object { prisma rotate <90,0,0> } object { prisma scale <0.99, 1.5, 0.99> translate <0,-1,0> rotate <90,0,0> } object { text { ttf "arial.ttf" "Hello World" 5, 0 } scale 1 texture {tx_white} rotate <90,0,0> translate<-2,-2,3.5> } } box { <0, 0, 0>, <15, 15, 1> texture { tx_fosca } rotate <90,0,0> translate<-5,-15,1> } light_source { <-2,4,3.5> color Green } #include "camlight.inc" #declare centro_cena = < 0.00, -10.00, 7.00 >; #declare raio_cena = 25.0; #declare dir_camera = < 10.00, 20.00, 15.00 >; #declare dist_camera = 30*raio_cena; #declare intens_luz = 0.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)