POV-Ray : Newsgroups : povray.general : Color add : Re: Color add Server Time
5 Aug 2024 02:23:30 EDT (-0400)
  Re: Color add  
From: Christopher James Huff
Date: 3 Jan 2003 16:33:15
Message: <cjameshuff-018002.16291203012003@netplex.aussie.org>
In article <Xns### [at] 204213191226>,
 "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:

> How can I make a texture with pigment of following components :
>   red = function { FA(x,y,z) }
> green = function { FB(x,y,z) }
>  blue = function { FC(x,y,z) }
> ?
> 
> The problem is, IMHO that there is no ADDITIVE filter in color.
> I tryed to use 3 texture layers but I don't know how to define colormaps ?

texture {average
    texture_map {
        [1 pigment{function{..} color_map{[0 rgb 0][1 rgb < 3, 0, 0>]}}
        [1 pigment{function{..} color_map{[0 rgb 0][1 rgb < 0, 3, 0>]}}
        [1 pigment{function{..} color_map{[0 rgb 0][1 rgb < 0, 0, 3>]}}
    }
}

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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