POV-Ray : Newsgroups : povray.advanced-users : Normal pigment not evaluated as a function? : Re: Normal pigment not evaluated as a function? Server Time
29 Feb 2024 22:34:53 EST (-0500)
  Re: Normal pigment not evaluated as a function?  
From: William F Pokorny
Date: 15 Apr 2020 07:35:09
Message: <5e96f16d$1@news.povray.org>
On 4/14/20 3:25 PM, Bald Eagle wrote:
> One additional thing this did highlight was why is RGB a pigment and emission a
> finish.
> Granted, there's the whole mechanism of handling all of this that's already
> coded up... but:
> It would interesting and useful to have rgbfte - or perhaps any channel >1
> functioning as an emissive value of (channel-1).
> That would allow function-driven pixel-by pixel emission control.
> But maybe I can work that into an average statement using a texture with
> emission...   hmmm.

A little off the top of my head, but IIRC, while you cannot have 
multiple finishes in a texture map of defined textures, I believe you 
can code up a texture map as:

texture_map {
     [0, pigment { pigm00 } finish { FinEmit }]
     [1, pigment { pigm01 } finish { FinPlain } ]

and get the differing finishes. I've never tried it with emission 
though, so if you do, let me know if it works. ;-)

Bill P.

Post a reply to this message

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