I've defined a pigment. I'm looking for a way to evaluate the pigment at a
specific location. I thought there may have been a path to do this in 3.6, but
I cannot get the syntax right. Any tips?
From: Leroy Whetstone
Subject: Re: Defined a pigment; what's the color at <vect>?
Date: 21 Aug 2008 22:22:33
Message: <48AE3F8C.7000706@joplin.com>
gregjohn wrote:
> I've defined a pigment. I'm looking for a way to evaluate the pigment at a> specific location. I thought there may have been a path to do this in 3.6, but> I cannot get the syntax right. Any tips?> >
#include"functions.inc"
then use: eval_pigment(Pigment, Vect)
From: Warp
Subject: Re: Defined a pigment; what's the color at <vect>?
Date: 22 Aug 2008 04:01:06
Message: <48ae7242@news.povray.org>
Leroy Whetstone <lrw### [at] joplincom> wrote:
> #include"functions.inc"> then use: eval_pigment(Pigment, Vect)
If you are going to evaluate the pigment a lot of times in a loop,
it's must faster if you create a pigment function just once, and then
just call that. Look at the implementation of eval_pigment() to see
how it's done.
--
- Warp