// Sexto Exercicio de MC930 // Editado em 09/11 // Fabio Yuasa Niizu RA:962325 #include "textures.inc" #include "colors.inc" background{ color rgb < 1,1, 1 > } light_source { < -4.00, -30.00, 50.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < -25.00, -25.00, 20.0> right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare cubo = box { < -10.00, -3.00, 2.00>, // Near lower left corner < -4.00, 3.00, 5.00> texture { Dark_Green_Glass } } #declare cubo_dentro = box { < -9.00, -2.00, 2.00>, // Near lower left corner < -5.00, 2.00, 6.00> texture { Dark_Green_Glass } } #declare base = box { < -12.00, -5.00, 0.00>, // Near lower left corner < 11.00, 5.00, 2.00> texture { Gold_Nugget } } #declare torres = box { < -2.00, -3.00, 2.00>, // Near lower left corner < 0.00, 3.00, 12.00> texture { Bright_Bronze } } #declare cilindro = cylinder { < 7.00, 0.00, 2.00 >, < 7.00, 0.00, 8.00 >, 2.00 texture { Ruby_Glass } } #declare cilindro_dentro = cylinder { < 7.00, 0.00, 2.00 >, < 7.00, 0.00, 9.00 >, 1.50 texture { Ruby_Glass } } object { base } difference { object { cubo } object { cubo_dentro } } object { torres } object { torres translate < 3.0, 0.0, 0.0 > } difference { object { cilindro } object { cilindro_dentro } }