// Priscilla Sanches Marques - RA 981944 // MC930 - Computação Gráfica // Exercício #1 - background{ color rgb < 1.00, 1.00, 1.00 > } light_source { < 4.00, 10.00, 30.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 8.00, 6.00, 3.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 > } // Declaração das cores utilizadas nas figuras #declare branco = texture { pigment { color rgb < 1.00, 1.00, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare preto = texture { pigment { color rgb < 0.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare vermelho_transparente = texture { pigment { color rgbt <1.00 0.00 0.00, 0.60> } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare azul_transparente = texture { pigment { color rgbt <0.0, 0.0, 1.0, 0.70> } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare amarelo = texture { pigment { color rgb <1.00, 0.80, 0.10> } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare quadrado = box { < 0.00, -4.00, +1.00 >, < +2.00, -2.00, +3.00 > texture { azul_transparente } rotate <0, 15, 0> } #declare cilindro_1 = cylinder { <+1.50, +2.25, 0.00>, <+1.50, +2.25, +2.00>, 2.00 texture { vermelho_transparente } rotate <0, 20, 0> } #declare cilindro_2 = cylinder { <+1.50, +1.25, +0.00>, <+1.50, +1.25, +2.01>, 0.50 texture { preto } rotate <0, 20 ,0> } #declare cilindro_3 = cylinder { <+1.50, +3.25, +0.00>, <+1.50, +3.25, +2.01>, 0.50 texture { branco } rotate <0, 20, 0> } #declare esfera = sphere { < 0.00, -4.75, +1.15 >, 1.00 texture { amarelo } } // A cena : union { object { quadrado } object { esfera } } union { object { cilindro_1 } object { cilindro_2 } object { cilindro_3 } }