#include "colors.inc" #include "stones.inc" background{ color rgb < 1.00, 1.00, 1.00 > } light_source { < 10.00, 10.00, 7.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 20.00, 10.00, 15.00 > right < +1.00, 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 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 terreo = box { <2,4,0> ,<-2,-4,3> color(Gray) } #declare i = 3; #declare andar = box { <2,4,i> , <-2,-4,i+3> texture{Azul} } //union{ // #while (i<10) // #if (rand(g) < 0.75) // sphere{ <10*i, 3, 4>,2+sin(pi*1/2)} // #end // #declare i = i + 1; // #end //} #declare g = seed(0.3); #declare nAndares = rand(g)*100; #declare j = 0; object{terreo} #while (j < nAndares) object{andar} #declare i = i + 3; #declare j = j + 1; #end