// Quarto exercicio de MP004 // Last edited on 2001-06-02 16:09:00 by Marcus Macedo background{ color rgb < 0.9, 0.9, 0.9 > } light_source { < 0.00, 6.00, 6.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 5.00, 5.00, 4.20 > right < -0.60, 0.00, 0.00 > up < 0.00, 0.00, 0.80 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 2.00 > } #declare vermelho = rgb < 1.00, 0.00, 0.00 > #declare branco = < 0.90, 0.90, 0.90 > #declare amarelo = < 1.00, 0.75, 0.00 > #declare tx_ouro = texture { pigment { rgb amarelo } finish { ambient 0.05 diffuse 0.05 reflection amarelo specular 0.20 roughness 0.05 } } #declare tx_prata = texture { pigment { rgb branco } finish { ambient 0.05 diffuse 0.05 reflection 0.85*branco specular 0.20 roughness 0.05 } } #declare tx_rubi = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.2 specular 1 roughness 0.001 } pigment { color vermelho filter 0.8 } } #declare cone_de_vidro_vermelho = cone { < 0.0, 0.0, 1.0>, 1.0 < 0.0, 0.0, 3.0>, 0.3 texture{ tx_rubi } } #declare bola_de_ouro = sphere { < 0.0, 0.0, 3.5 >, 0.5 texture { tx_ouro } } #declare toro_da_base_1 = torus { 1.0, 0.25 sturm texture{ tx_prata } rotate 90*x translate < 0, 0, 0.75 > } #declare toro_da_base_2 = torus { 1.0, 0.25 sturm texture{ tx_prata } rotate 90*x translate < 0, 0, 0.25 > } #declare chao_xadrez = plane { z, 0 pigment { checker < 0, 0, 0 >, < 1, 1, 1 > } } // Aqui está a cena, finalmente: object { chao_xadrez } object { toro_da_base_2 } object { toro_da_base_1 } object { cone_de_vidro_vermelho hollow interior{ior 1.5} } object { bola_de_ouro }