POV-Ray : Newsgroups : povray.general : Order of texture and pigment matter? : Re: Order of texture and pigment matter? Server Time
30 Jul 2024 22:19:02 EDT (-0400)
  Re: Order of texture and pigment matter?  
From: Tim Attwood
Date: 12 May 2008 20:25:16
Message: <4828dfec$1@news.povray.org>
> Care to expand on that a little?  Why wouldn't it work?   What is going 
> on?
> Clue, please.  :-)

POV finds a finish identifier, not a finish statement,
identifiers and statements aren't interchangeable.
It expects usage like ...

#declare testfinish = finish {ambient 0.7};

triangle {
    v0, v1, v2
    texture {
      pigment { Red }
      finish { testfinish }
    }
}

Declare statements shouldn't be confused with macros.
A macro substitutes the lines directly into the calling
code instead of using identifiers. Example...

#macro testfinish() finish {ambient 0.7} #end

triangle {
    v0, v1, v2
    texture {
      pigment { Red }
      testfinish()
   }
}

Here testfinish() is replaced by "finish {ambient 0.7}"
which is a finish statement instead of a finish identifier.


Post a reply to this message

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