|  |  | On Tue, 18 Jun 2002 17:26:10 -0500, Scott Wasson wrote:
> Any idea what causes this problem?  I know about the note in section
> 6.7.6, "Layered Textures", but that has to do with macros inside layered
> textures.  This is the other way around, layered textures inside a
> macro.  I don't see any syntax ambiguities.
This is strange, I've never encountered it before...maybe it is just a
result of the layered texture definition being in a macro, so the parser
doesn't expect that construction.
It might work if you declared the layered texture as a local variable:
#macro()
    #local localTex =
    texture {}
    texture {}
But I don't know how you would return the texture..."texture {localTex}"
would get picked up as a third layer, I think you would have to return
"localTex" and wrap the macro call in a texture {} block. Assuming this
trick actually helps...
Hopefully, a future version of POV-Ray will have an improved syntax for
defining layered textures...
-- 
Christopher James Huff <chr### [at] mac com>
POV-Ray TAG e-mail: <chr### [at] tag  povray  org>
WWW: http://homepage.mac.com/chrishuff/Post a reply to this message
 |  |