// Exercicio 3 background{ color rgb < 0.00, 0.53, 0.75 > } light_source { < 4.00, 10.00, 50.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 8.00, 4.00, 2.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 tinta_A = texture { pigment { color rgb < 0.10, 0.80, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare ponta_aviao = sphere { < 0.00, 0.00, 0.00 >, 0.50 texture { tinta_A } scale <2.00,0.00,0.00> translate < 4.30, 0.00, 0.00 > } #declare meio_aviao = cylinder { < -3.20, 0.00, 0.00 >, < 3.20, 0.00, 0.00 >, 0.50 texture { tinta_A } } #declare asa_fundo = cone { <1, 1, 1>, 0.5 <2, 1, 2.5>, 0.01 rotate 45*z texture { tinta_B } } #declare remo = union { box { <-3.5, 0, 0.18>, // Near lower left corner < 4, 0.18, 0> // Far upper right corner texture { tinta_B scale 4 } rotate z*60 // Equivalent to "rotate <0,20,0>" } } union{ object { ponta_aviao translate <0.00,0.00,0.00> } object { meio_aviao translate <1.00,0.00,0.00> } object { asa_fundo translate <-1.70,-1.20,-1.00> } object { remo rotate z*20 translate <2.80,-1.20,0.00> } object { remo rotate z*20 translate <1.70,-1.20,0.00> } }