Hugo wrote:
> Hi,
>
>
>
>
>
>
> #declare MyTexture = texture{ pigment {agate} }
>
> #declare MyOtherTexture = texture{ MyTexture pigment{ granite} }
>
>
>
> are legal, but
>
>
>
> #declare MyTexture = texture{ uv_mapping pigment {agate} }
>
> #declare MyOtherTexture = texture{ MyTexture pigment{ granite} }
>
>
>
> cause a parser error on the second declaration: no matching } in 'texture',
> pigment found instead.
Not sure about whether a bug. You are overriding the pigment declared
in MyTexture with the definition that follows. I guess once you
introduce uvmapping you can't do that.
This seems to work:
#declare MyTexture = texture { pigment {agate} }
#declare MyOtherTexture =
texture { uv_mapping MyTexture pigment { granite} }
Post a reply to this message
|