POV-Ray : Newsgroups : povray.general : eval_pigment? : Re: eval_pigment? Server Time
21 Mar 2023 01:14:26 EDT (-0400)
  Re: eval_pigment?  
From: Bald Eagle
Date: 20 Nov 2022 18:10:00
Message: <web.637ab386287863e91f9dae3025979125@news.povray.org>
"Leroy" <whe### [at] gmailcom> wrote:
> Related to the post above.. Why was eval_pigment dropped? Why not expand it?
> If not kept as a built in function, why not put it in one of the include files?
> Have Fun?

eval_pigment is a macro in the functions.inc file.

It is, as has been pointed out in the past, simply a wrapper for a pigment

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

You plug in your <x, y, z> vector, and out pops the <r, g, b> color vector at
that point in the pattern, image_map, etc.

Post a reply to this message

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