POV-Ray : Newsgroups : povray.general : Colors clamped in pigment : Re: Colors clamped in pigment Server Time
6 Oct 2024 09:13:48 EDT (-0400)
  Re: Colors clamped in pigment  
From: scott
Date: 7 Apr 2014 04:29:45
Message: <534261f9$1@news.povray.org>
Try something like this, set MAX_COLOUR to the highest value you expect 
to see from the functions.



  average pigment_map{

       [function{PR_FRed(x,y,z)/MAX_COLOUR} color_map{[0 rgb 0][1 rgb 
<1,0,0>*3*MAX_COLOUR]}]
       [function{PR_FGrn(x,y,z)/MAX_COLOUR} color_map{[0 rgb 0][1 rgb 
<0,1,0>*3*MAX_COLOUR]}]
       [function{PR_FBlu(x,y,z)/MAX_COLOUR} color_map{[0 rgb 0][1 rgb 
<0,0,1>*3*MAX_COLOUR]}]

     }


Post a reply to this message

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