POV-Ray : Newsgroups : povray.general : Where does eval_pigment come from? : Re: Where does eval_pigment come from? Server Time
31 Jul 2024 16:18:24 EDT (-0400)
  Re: Where does eval_pigment come from?  
From: Warp
Date: 8 Dec 2006 01:49:04
Message: <45790ae0@news.povray.org>
Charles C <nomail@nomail> wrote:
> It should be in functions.inc in your include directory....   If not here's
> the cut/paste:

> #macro eval_pigment(pigm, vec)
>     #local fn = function { pigment { pigm } }
>     #local result = (fn(vec.x, vec.y, vec.z));
>     result
> #end

  If that is going to be called a lot, it may be a much better idea to
"inline" that macro so that the fn function is declared just once.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.