// ====================================================================== // CÂMERA camera { location < 0, 8.0 , 2.0 > // Posição do observador. right -0.75*x // Largura RELATIVA da imagem. up 1.00*y // Altura RELATIVA da imagem. sky z // Qual direção é "para cima"? look_at < 0.00, 0.00, 0.00 > // Para onde a câmera está apontando. } // Nota: os parâmetros "right" e "up" devem ter a mesma proporção // que os parâmetros ${WIDTH} e ${HEIGHT} no Makefile. // ====================================================================== // FONTES DE LUZ light_source { < 0.0, +25.0, 15.0 > // Posição da lâmpada. color rgb 1.2 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { 10 * < 0.0, 20.0, 70.0 > // Posição da lâmpada. color rgb 2.0 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } light_source { < 1.0, 1.0, -1.0 > // Posição da lâmpada. color rgb 0.8 * < 1.00, 1.00, 1.00 > // Intensidade e corda luz. } // ====================================================================== // DESCRIÇÃO DA CENA background{ color rgb < 0.75, 0.80, 0.85 > } #declare tinta_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 tinta_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 tinta_vermelha = texture { pigment { color rgb < 1.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare cor_espelho = <0.00, 0.00, 1.00>; #declare tx_espelho = texture{ pigment{ rgb cor_espelho } finish{ ambient 0.05 diffuse 0.05 reflection cor_espelho specular 0.20 roughness 0.05 } } #declare cor_cristal = < 1, 0, 0>; #declare tx_cristal = texture{ finish{ ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment {color cor_cristal filter 1} } #declare toro = torus { 2.00, 0.25 rotate <90, 0, 0> texture{tx_espelho} } #declare haste = cylinder{ < 0.0, -1.85, 0.00>, < 0.0, -1.85, 1.00>, 0.15 texture { tinta_azul } } #declare topo = lathe{ linear_spline 8, <0,1>, <2, 1>, <2, 1.4>, <1.75, 1.8>, <2, 2.2>, <2, 2.6>, <0.50, 2.6>, <0, 3> texture{tx_cristal} interior { ior 1.5} rotate <90, 0, 0> } plane { z, -2 texture{ pigment{checker <0, 0, 0>, <1, 1, 1>} finish { ambient 0.1 diffuse 0.9} scale 0.5 } } #declare pedras = union{ sphere{ < 0, 2, 2.4>, 0.1 texture{tinta_azul} } box{ <-0.1, 2.1, 1.1>, <0.1, 1.9, 1.3> texture{tinta_verde} } sphere{ < 1, 1.75, 1.2>, 0.1 texture{tinta_vermelha} } sphere{ < -1, 1.75, 1.2>, 0.1 texture{tinta_azul} } box{ <1.1, 1.65, 2.3>, <0.9, 1.85, 2.5> texture{tinta_verde} } box{ <-1.1, 1.65, 2.3>, <-0.9, 1.85, 2.5> texture{tinta_vermelha} } } // Aqui está a cena, finalmente: union { object{toro} object{haste} object{topo} object{pedras} }