|
![](/i/fill.gif) |
Tom Melly wrote:
>
> I am feeling vaguely inspired to try making a new pattern type.
>
> It would be almost indentical to "average" but would add values rather than
> average them.
>
> If I download the source to POV, where would I go looking for the code for
> "average"? (I'm afraid this is likely to be the first of many questions, but
> it'll do for starters).
pigment.c:
static void Do_Average_Pigments (...
But 'average' is not a pattern. That's probably also why you did not find
it.
For patterns look in pattern.c
If you want to create a new pattern, it might be useful to look for all
the changes made with #ifdef for a specific patch like:
#ifdef ObjectPatternPatch
BTW, a tool searching for keywords in all source files is quite practical
for such things.
Christoph
--
Christoph Hormann <chr### [at] gmx de>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |