|
|
> I wouldn't know how to define the function... The math is a bit beyond me.
You should be able to just use the functions I gave you, with pigment maps.
For instance, if you apply the pigment I provided to a sphere, you should
see how the f_th function looks and then you can make a pigment map to work
with it.
Or, if you want to use three functions to describe the R, G, and B color
components and combine them, you can do it like this:
pigment
{
average
pigment_map
{
[1 function{redfunc(x,y,z)} color_map{[0 rgb 0][1 rgb <3,0,0>]}]
[1 function{greenfunc(x,y,z)} color_map{[0 rgb 0][1 rgb <0,3,0>]}]
[1 function{bluefunc(x,y,z)} color_map{[0 rgb 0][1 rgb <0,0,3>]}]
}
}
If you just use f_th, f_r, and f_ph for the red/green/blue functions, you
will already have an interesting pigment.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|