POV-Ray : Newsgroups : povray.beta-test : Calling a macro in layered texture : Calling a macro in layered texture Server Time
4 Jul 2024 13:14:47 EDT (-0400)
  Calling a macro in layered texture  
From: Thomas de Groot
Date: 29 Jan 2010 08:29:08
Message: <4b62e2a4@news.povray.org>
I wonder if this is a bug or not. Happens as well in 3.7 as in 3.6:

The following code works fine:

#declare MyTex =
texture{ pigment {color GammaColor(<0.83,0.83,0.83>,Gamma) }}
texture{ pigment{uv_mapping p_map16 transmit  0.17}}

The following gives a parse error stating that it cannot find the closing 
pigment brace but finds a macro identifier instead:

#declare MyTex =
texture{ pigment{uv_mapping p_map16 }}
texture{ pigment {color GammaColor(<0.83,0.83,0.83>,Gamma) transmit  0.17}}


What do you think? If not a bug, why does this happen?

Thomas


Post a reply to this message

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