POV-Ray : Newsgroups : povray.general : What clipka actually said about the srgb keywords : Re: What clipka actually said about the srgb keywords Server Time
20 May 2024 17:17:21 EDT (-0400)
  Re: What clipka actually said about the srgb keywords  
From: Samuel B 
Date: 14 Aug 2023 19:00:00
Message: <web.64dab1d02197683df8c47d526e741498@news.povray.org>
Cousin Ricky <ric### [at] yahoocom> wrote:
> I just ran across these comments while looking for something else.
> Clipka's initial warning was:
>   https://news.povray.org/58625d1f%241%40news.povray.org
>
> His correction to the initial warning:
>   https://news.povray.org/5862ea88%241%40news.povray.org
>
> To summarize the two posts:
>
>   ... you need to use
>
>       #declare C = srgb <R,G,B>;
>       colour C * Brightness
>
>   rather than
>
>       colour srgb <R,G,B>*Brightness
>
>   because the latter would be interpreted as
>
>       colour srgb (<R,G,B>*Brightness)
> [...]

This clears up an issue I had a few days ago: multiplying an srgb value at
declaration gave me much different results than when multiplying it within a
sky_sphere's color map. Very good to know, thanks!

Sam


Post a reply to this message

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