I'm trying to declare a macro that defines a layered texture. Here's a
simplified example:
#macro fooTexture()
texture {
pigment { Red }
}
texture {
pigment { Blue }
}
#end //macro fooTexture
Please ignore the fact there's no transmit in the Blue layer... Now, if I
add a #-something to the second layer:
texture {
#declare fooBar=2;
pigment { Blue }
}
or:
texture {
#if ( 0 )
pigment { Blue }
#else
pigment { Green}
#end
}
or add any #'whatevers at all within the second layer, I get a parsing
error: "No matching } in 'texture', # found instead".
But if I do:
#macro fooTexture()
texture {
#declare fooBar=2;
pigment { Red }
}
texture {
pigment { Blue }
}
#end //macro fooTexture
It doesn't complain about #declares in the 1st layer. What up?
-Scott
Post a reply to this message
|