POV-Ray : Newsgroups : povray.general : Modulo in 3.7RC4? : Modulo in 3.7RC4? Server Time
29 Jul 2024 08:22:40 EDT (-0400)
  Modulo in 3.7RC4?  
From: gregjohn
Date: 1 Mar 2012 21:30:01
Message: <web.4f50304e36bcbdfaf7bb1fbb0@news.povray.org>
Hi. I've been using this code in a color map. In 3.6 it behaves as expected. In
3.7RC4,  all my colors are shifted to cyan, magenta, yellow, and white.  This
makes me wonder if the mod() function is behaving differently in 3.7RC4, or if
it requires a different syntax now.  Crazy hypothesis, but so are the results
compared to 3.6.



For any two vectors of length <1, I use:

rgb< mod(a.x+b.x,1),mod(a.y+b.y,1),mod(a.z+b.z,1)>


Post a reply to this message

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