POV-Ray : Newsgroups : povray.advanced-users : UV Repeat in image_map : Re: UV Repeat in image_map Server Time
19 Apr 2024 12:38:29 EDT (-0400)
  Re: UV Repeat in image_map  
From: Roland Melkert
Date: 31 Jan 2018 14:40:01
Message: <web.5a721b4712d0a639c949581a0@news.povray.org>
"Roland Melkert" <nomail@nomail> wrote:
> I'm now using this, which seems to work fine.

Edit: some corrections fyi
---------
#macro getPngWarp(idx)
  #local doU=getPngNeedsURepeat(idx);
  #local doV=getPngNeedsVRepeat(idx);

  #if ((doU | doV) & !(doU & doV)) //xor
   #if (doU)
     warp { repeat x }
   #else
     warp { repeat y }
   #end
  #end
#end


Post a reply to this message

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