POV-Ray : Newsgroups : povray.programming : calculation for pixel normal value and color value in source code : Re: calculation for pixel normal value and color value in source code Server Time
8 Dec 2024 11:24:37 EST (-0500)
  Re: calculation for pixel normal value and color value in source code  
From: Warp
Date: 9 Feb 2010 10:41:21
Message: <4b718221@news.povray.org>
You might be able to do that without having to modify the source code.

  Define three pigments, each using a slope_map oriented towards each of
the main axes, and each using one of the RGB components as its color map
(ie. the first would be from black to red, the second from black to green,
and so on). Then use the average of these pigments as your overall pigment
of the object.

-- 
                                                          - Warp


Post a reply to this message

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