// Terceiro Exercicio de MC930 // Editado em 19/10 // Alexandre Piccolo RA 961871 background{ color rgb < 1,1, 1 > } light_source { < 5.00, -20.00, 5.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 8.00, -8.00, 0.00 > right < -1.20, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 2.00 > } #declare raio = 2.000; #declare tinta_red = texture { pigment { color rgb < 1, 0, 0 > } normal { bumps 0.9 scale 0.75 } finish { phong 1 } } #declare tinta_red2 = texture { pigment { color rgb < 1, 0, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_green = texture { pigment { color rgb < 0, 1, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_blue = texture { pigment { color rgb < 0, 0, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_ye = texture { pigment { color rgb < 1.0, 1.0, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.5 ambient 0.1 } } #declare tinta_yeBP = texture { pigment { color rgb <1.0, 1.0, 0.00> } normal { bumps 0.3 scale 0.15 } finish { phong 1 } } #declare tinta_roxo = texture { pigment { color rgb < 0.3, 0.3, 0.3 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare bola1 = sphere { < 0, 0.00, 2.00 >, 2.00 texture { tinta_yeBP } } #declare bolaIn = sphere { < 0, 0.00, 2.00 >, 0.80 texture { tinta_red } } #declare cabo = cylinder { <0.00, 0.00, 4.00>, <0.00, 0.00, 5.00>, 0.10 texture { tinta_green } } #declare Corte = box { < 0, -8, 0>, // Near lower left corner < 8, 8, 8> texture { tinta_yeBP } } // Aqui está a cena, finalmente: union { difference { object { bola1 } Corte } object { bolaIn } object { cabo } }