POV-Ray : Newsgroups : povray.binaries.images : pattern blend : Re: pattern blend Server Time
26 May 2024 12:18:10 EDT (-0400)
  Re: pattern blend  
From: Alain
Date: 5 Mar 2018 15:55:00
Message: <5a9daea4@news.povray.org>

> On 4-3-2018 18:12, Norbert Kern wrote:
>> #declare p_o_x = function {p_original (x,y,z).x}
>> #declare p_o_y = function {p_original (x,y,z).y}
>> #declare p_o_z = function {p_original (x,y,z).z}
>>
> 
> I had thought to use:
> 
> #declare p_o_R = function {p_original (x,y,z).red}
> #declare p_o_G = function {p_original (x,y,z).green}
> #declare p_o_B = function {p_original (x,y,z).blue}
> 
> But that should yield the same thing I guess. I was going to code that...
> 

Yes, both forms will yield the same end result, but, the second form is 
recommended whenever you are dealing with colours.

Alain


Post a reply to this message

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