|
![](/i/fill.gif) |
Greg M. Johnson <gregj:-)565### [at] aol com> wrote:
>> Use the pattern with a pigment_map instead.
> Can you suggest a syntax for this?
I got confused. The object pattern cannot be used with a pigment_map
literally. However, it can take two pigments without problems:
camera { location -z*5 look_at 0 angle 35 }
light_source { -z*10, 1 }
#declare Object = sphere { 0,1 }
#declare Pigm1 = pigment { bozo color_map { [0 rgb 0][1 rgb 1] } }
#declare Pigm2 = pigment { granite color_map { [0 rgb x][1 rgb x+y] } }
plane
{ -z,0
pigment
{ object
{ Object
pigment { Pigm1 }
pigment { Pigm2 }
}
}
}
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |