POV-Ray : Newsgroups : povray.unofficial.patches : UVPOV 5.2a parser bug : Re: UVPOV 5.2a parser bug Server Time
2 Sep 2024 22:20:12 EDT (-0400)
  Re: UVPOV 5.2a parser bug  
From: Thorsten Froehlich
Date: 16 Jun 1999 14:31:13
Message: <3767ed71@news.povray.org>
In article <3767bb49@news.povray.org> , par### [at] fwicom (Ron Parker) wrote:

> From the documentation, the section on layered textures:
>
> ---------------
>     Layered textures may be declared. For example
>
>     #declare Layered_Examp =
>       texture {T1}
>       texture {T2}
>       texture {T3}
> ---------------
>
> In fact, there are places you can't use a layered texture directly
> but you may use a declared one.  From the same page in the docs:
>
> ---------------
>     If you wish to use a layered texture in a block pattern, such as
>     checker, hexagon, or brick, or in a material_map, you must declare
>     it first and then reference it inside a single texture statement.
> ---------------

Aha, so I really missed that :-)   Well, I don't use layered textures very
often...

> And here's the code from the parser, from parse.c in the function
> Parse_RValue.  The interior EXPECT loop takes care of any remaining
> texture definitions after the first one, linking them to form a
> layered texture.

Makes sense.  Thank you for the clarification.


      Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: Tho### [at] csicom

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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