// MC930: Exercicio 6 - 09/11/2000 #include "textures.inc" #include "colors.inc" #include "finish.inc" background { color rgb < 1.00, 1.00, 0.80 > } light_source { < 20.00, 50.00, 20.00 > color rgb 3* < 1.00, 1.00, 1.00 > } camera { location < 20.00, 30.00, 30.00 > right < 2.40, 0.00, 0.00 > up < 0.00, 0.00, 1.80 > sky < 0.00, 1.00, 0.00 > look_at < 10.00, 25.00, 0.00 > } #declare tinta_AMAR = texture { pigment { color rgb < 1.00, 1.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #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_VERD = 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_VIDR = texture { Glass } #declare chao = plane {y,0 texture { pigment { checker color rgb <0.00, 0.00, 0.00> color rgb <1.00, 1.00, 1.00> } } } #declare esquerda = cylinder { <-10, 0, 0> <-10, 10 , 0> 5 texture { tinta_VIDR }} #declare esquerda2 = cylinder { <-10, 0, 0> <-10, 12 , 0> 4.5 texture { tinta_AZUL }} #declare esquerda3 = difference { object { esquerda } object { esquerda2 }} #declare direita = cylinder { <10, 0, 0> <10, 20 , 0> 5 texture { tinta_VIDR }} #declare direita2 = cylinder { <10, 0, 0> <10, 22 , 0> 4.5 texture { tinta_AZUL }} #declare direita3 = difference { object { direita } object { direita2 }} #declare meio = box { < -5, 0, -5>, < 5, 30, 5> texture { tinta_VIDR } } #declare meio2 = box { < -4, 0, -4>, < 4, 32, 4> texture { tinta_AZUL } } #declare meio3 = difference { object { meio } object { meio2 }} #declare juncao = box { < 0 0, -4.95>, < 10 9.9, 4.95> texture { tinta_VIDR } } #declare juncao2 = box { < -10 0, -4.95>, < 0 4.9, 4.95> texture { tinta_VIDR } } #declare juncao3 = union { object { juncao } object { juncao2 }} // Cena Final object { chao } object { esquerda3 } object { direita3 } object { meio3 } object { juncao3 }