POV-Ray : Newsgroups : povray.newusers : Pigment colour from RGB functions : Re: Pigment colour from RGB functions Server Time
18 Jun 2024 08:31:53 EDT (-0400)
  Re: Pigment colour from RGB functions  
From: waggy
Date: 22 May 2013 12:05:01
Message: <web.519cec9783779f7f21be1230@news.povray.org>
scott wrote:
> I had thought of doing such a thing but I don't know in my code how
> large the return values of the function will be (certainly not limited
> to 1).

One function I've used to guarantee all finite values get mapped within [0,1) is
this.

1-1/(1+abs(functionR))

However, emission pigments having values greater than unity is not unusual. A
global brightness parameter seems like the way to go.


Post a reply to this message

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