// Exercício número 4 - Aula de 01/06/2001 // Anderson Supriano - RA 7852 background{ color rgb < 0.5, 0.5, 0.5 > } #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 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 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 chao = texture { pigment{ color rgb < 0.5, 0.5, 0.8 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.5 } normal {granite} } #declare transparente = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001} pigment { color rgb <1.0, 0.7, 0.7> filter 1 } } #declare cor_espelho = <1, 1, 0>; #declare espelhado = texture { pigment { color rgb cor_espelho } finish { ambient 0.05 diffuse 0.05 reflection cor_espelho specular 0.20 roughness 0.05 } } camera { location < 3, 6, 6 > right <-0.60, 0.00, 0.00> up <0.00, 0.00, 0.80> sky <0.00, 0.00, 1.00> look_at < 0, 0, 2 > } light_source { < 0, 7, 7 > color rgb < 1.50, 1.50, 1.50 > } #declare base = cone { <0, 0, 0>, 1, <0, 0, 1>, 0.4 texture {transparente} hollow interior{ior 1.5} } #declare corpo_curvo = difference { sphere { <0, 0, 2>, 1 } box { <-1, -1, 2>, <1, 1, 3> } texture {espelhado} } #declare bolacha = torus { 0.8, 0.2 rotate 90*x texture {espelhado} } #declare corpo = difference { cylinder { < 0, 0, 2>, < 0, 0, 4>, 1 } cylinder { < 0, 0, 2>, < 0, 0, 5>, 0.8 } texture {espelhado} } union { plane { <0,0,1>, 0 texture {chao} } object {base} object {corpo_curvo} object {corpo} object {bolacha translate <0, 0, 4>} }