POV-Ray : Newsgroups : povray.general : Is this a bug? : Re: Is this a bug? Server Time
1 Aug 2024 18:23:59 EDT (-0400)
  Re: Is this a bug?  
From: Jim Charter
Date: 4 Jun 2005 11:18:01
Message: <42a1c629$1@news.povray.org>
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

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