// Exercício número 1 - Aula de 12/05/2001 // Anderson Supriano - RA 7852 background{ color rgb < 0.95, 0.98, 0.94 > } light_source { < -10, 15, 55 > color rgb < 1.00, 1.00, 1.00 > } camera { location < -10, 30, 45 > right < -1.2, 0.00, 0.00 > look_at < 20, 30, 10 > } #declare vermelho = texture { pigment { color rgb < 1.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare amarelo = texture { pigment { color rgb < 1.00, 1.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare azul = texture { pigment { color rgb < 0.00, 0.00, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare cilindro = cylinder { < 0, 30, 20 >, < 25, 30, 20 >, 5 texture { vermelho } } #declare cone1 = cone { < 25, 30, 20 >, 5 < 35, 30, 20>, 2 texture { amarelo } } #declare caixa = box { < 5, 25, 18 >, < 20, 23, 22> texture { azul } } // Aqui está a cena, finalmente: union { object { cilindro } object { cone1 } object { caixa } }