|
|
sacrofts <sac### [at] tinyonlinecouk> wrote:
: #declare PFWaves =
: function {
: pigment {waves scale 10
: color_map {
: [0 rgb 1.5]
: [1 rgb 0]
: }
: }
: }
You should read the documentation more carefully.
Your PFWaves function is a pigment function which returns a color. You
can't use a color in another function which expects a float. If you want
to use the pigment function in another function, you have to specify what
to do with the color returned by it. This is done with the dot operator.
The most common use is .gray (ie. PFWaves(x,y,z).gray) but you can also
use .x, .y, .z and so on.
--
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}// - Warp -
Post a reply to this message
|
|