|
![](/i/fill.gif) |
What is wrong with below syntax ?
#declare P=.5;
#declare C=texture{pigment{color rgb 1}finish{ambient.5}}
#declare B=texture{pigment{color rgb 0}finish{ambient 0}}
#declare A=texture{average texture_map{[(1-P) C][P B]}}
texture{gradient y texture_map{[0 B][.5 A][1 C]}}
it causes error: ] expected but undeclared identifier 'A' found instead.
noticed in POV-Ray 3.1g and MegaPOV 0.7
ABX
--
#local A="000114120001121034130151142153134064180060195"#local B=0;#macro G()
#declare B=B+1;val(substr(A,B,1))#end#local S=seed(1);light_source{10,1}blob{
threshold.6#local U=z;#local Y=0;#while(Y<15)#local E=G()*.7+.1e-3;#local V=<
3.5-G(),G()-2.5,-1>;#local X=0;#while(X<1)sphere{<12*X+rand(S)-6,Y+rand(S)-5,
-1>1,1}sphere{U+X*(V-U)+rand(S)E,.3}#local X=X+.01;#end#local U=V;#local Y=Y+
1;#end texture{pigment{rgb 1}normal{agate}}}camera{location z*8look_at 0}
Post a reply to this message
|
![](/i/fill.gif) |