|
![](/i/fill.gif) |
On 3/18/2011 11:14 AM, stbenge wrote:
Oops, here's a fixed version:
#declare N_UnitsX = 4;
#declare N_UnitsY = 4;
#declare N_UnitsZ = 4;
#declare RSEED = seed(1001);
box{0, 1
pigment{
gradient z
pigment_map{
#local Z=0;
#while(Z<N_UnitsZ)
[Z/(N_UnitsZ-1)
gradient y
pigment_map{
#local Y=0;
#while(Y<N_UnitsY)
[Y/(N_UnitsY-1)
gradient x
pigment_map{
#local X=0;
#while(X<N_UnitsX)
[X/(N_UnitsX-1)
rgb <rand(RSEED),rand(RSEED),rand(RSEED)>
]
#local X=X+1;
#end
}
]
#local Y=Y+1;
#end
}
]
#local Z=Z+1;
#end
}
}
finish{ambient 1}
translate -1/2
}
Post a reply to this message
|
![](/i/fill.gif) |