POV-Ray : Newsgroups : povray.newusers : eval_pigment : Re: eval_pigment Server Time
4 Sep 2024 22:16:41 EDT (-0400)
  Re: eval_pigment  
From: Warp
Date: 14 Jul 2002 21:42:13
Message: <3d322874@news.povray.org>
It's anyways more efficient to make a pigment function from your pigment
and then call this function instead of calling the standard macro. This is
specially true if you are going to evaluate the pigment a lot of times.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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