// MC930 - Trabalho prático 4 - 1s2003 // Artur Manoel Passos RA 001388 #include "colors.inc" background{ SummerSky } #declare cor_cristal = <0, 1, 0>; #declare tx_cristal = texture { finish { ambient 0.1 diffuse 0.3 reflection 0.25 specular 1 roughness 0.01 } pigment { color cor_cristal filter 1 } } #declare cor_espelho = Scarlet; #declare tx_espelho = texture { finish { ambient 0.1 diffuse 0.4 reflection 0.4*cor_espelho specular 0.20 roughness 0.05 } pigment { color cor_espelho filter 0.3 } } #declare cor_espelho2 = White; #declare tx_espelho2 = texture { finish { ambient 0.05 diffuse 0.05 reflection cor_espelho2 specular 0.20 roughness 0.05 } pigment { color cor_espelho2 filter 0.9 } } #declare tx1 = texture { pigment { Silver } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare cx2 = Gray10; #declare tx2 = texture { pigment { cx2} finish { reflection 0.5*cx2 diffuse 0.05 specular 0.2 roughness 0.15 ambient 0.05 } } light_source { < -8.00, 3.00, -7.00 > color rgb < 2.20, 2.20, 2.20 > } light_source { <8.00, 3.00, -7.00 > color rgb < 2.20, 2.20, 2.20 > } plane { y, -1 texture {tx1} } camera { location < 5, 2, -8.00 > right < 0.60, 0.00, 0.00 > up < 0.00, 0.80, 0.00 > sky < 0.00, 1.00, 0.00 > look_at < 0.00, 0.00, 0.00 > } box { <-1, -1, -1 >, <1, 1, 1> texture {tx_espelho} interior { ior 1.5 }} cylinder { <0, 0, -1.9>, <0, 0, 1.9> 0.4 texture {tx_cristal} interior { ior 1.5 }} cylinder { <0, 0, 1.9>, <0, 0, 2.2> 0.8 texture {tx2}} cylinder { <0, 0, -1.9>, <0, 0, -2.2> 0.8 texture {tx2}} cylinder { <0, 0, 0>, < 0, 1.5, 0> 0.4 texture {tx_cristal}} cylinder { <0, 1.5, 0>, <0, 1.8, 0> 0.8 texture {tx_espelho2}} difference { box { <1, 0.4, -0.7>,<2.4, 0.6, 0.7> texture {tx_espelho} } cylinder { <1.7, 0.39, 0>, <1.7, 0.61, 0> 0.6 texture {tx_espelho}} }