|
![](/i/fill.gif) |
Mike Williams <nos### [at] econym demon co uk> wrote:
> If you want to use it on an object that doesn't lie within that region,
> then you need to consider what colour you want to have for points
> outside that region and code it accordingly.
Thanks for the answer!
What's odd is that you can't scale the pigment either. For instance, the
following produces errors.
sphere {0,1
pigment{
function {sqrt(pow(x,2) + pow(z,2)) / cos(asin(abs(y)))}
pigment_map
{
[0 color rgb 0]
[1 color rgb <0,1,0,>]
}
scale y/2
translate y
}
}
Shouldn't the function be evaluated to completion before the pigment gets
scaled?
-Mike
Post a reply to this message
|
![](/i/fill.gif) |