// Primeiro Exercicio de MC930 // Editado em 28/09 // Gustavo Melim do Carmo RA962489 background{ color rgb < 1,1, 1 > } light_source { < 4.00, 10.00, 50.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 8.00, 4.00, 2.00 > 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 raio = 2.000; #declare tinta_red = texture { pigment { color rgb < 1, 0, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_green = texture { pigment { color rgb < 0, 1, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_blue = texture { pigment { color rgb < 0, 0, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare bola = sphere { < 0, -3.0, 2.00 >, 1.00 texture { tinta_green } } #declare cilindro = cylinder { < -0.5, -0.5, -3.00 >, < -0.5, -0.5, -0.70 >, 0.6 texture { tinta_blue } } #declare quad = box { <1.5, 1.5, 1.5>, < 2.5, 2.5, 2.5> texture { tinta_red } } // Aqui está a cena, finalmente: object { bola } object { cilindro } object { quad }