// Exercicio 1 // Luis Antonio Pazian Lemos RA 951805 - 12/05/2001 background{ color rgb <0, 0.6, 1.0 > } light_source { < 4.00, 10.00, 15.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 4.00, 2.00, 1.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, 0.00 > } #declare raio = 2.000; #declare tinta_A = texture { pigment { color rgb < 0.5, 0.25, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = 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_C = texture { pigment { color rgb < 1.00, 1.00, 0.40 > } finish { diffuse 0.5 specular 0.5 roughness 0.4 ambient 0.1 } } #declare bola = sphere { < 1.00, 1.12, 0.65 >, 0.15 texture { tinta_A } } #declare cone1 = cone { <1, 1, -0.5>, 0.75 // Center and radius of one end <1, 1, 0.5>, 0.25 // Center and radius of other end texture { tinta_C scale 4 } } #declare cone2 = cone { <1,0.85,0.5>, 0.10 // Center and radius of one end <1,0.85,1.0>, 0.00 // Center and radius of other end texture { tinta_B scale 4 } } #declare furo1 = cylinder { < -2.00, -3.00, -2.00 >, < +2.00, +2.00, +2.00 >, 0.75 texture { tinta_B } } #declare furo2 = cylinder { < -2.00, -2.00, +2.00 >, < +2.00, +2.00, -2.00 >, 0.75 texture { tinta_B } } // Aqui está a cena, finalmente: object { cone1 } object { cone2 } object { bola }