// Primeiro exercicio de MP004 // Last edited on 2001-05-12 16:09:00 by Marcus Macedo background{ color rgb < 0.00, 0.00, 0.00 > } light_source { < 8.00, 5.00, 7.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 6.00, 4.00, 6.00 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 5.00 > look_at < 0.50, 1.50, 2.50 > } #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 verde = texture { pigment { color rgb < 0.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 bola = sphere { < 0.50, 2.25, 3.75 >, 0.75 texture { verde } } #declare cilindro = cylinder { < 0.50, 1.00, 1.00 >, < 0.50, 1.00, 4.50 >, 0.50 texture { vermelho } } #declare caixa = box { < 0.00, 0.00, 0.00 >, < 1.00, 3.00, 1.00 > texture { azul } } // Aqui está a cena: object { bola } object { cilindro } object { caixa }