POV-Ray : Newsgroups : povray.newusers : declared patterns without pigments ( rvalue ) : Re: declared patterns without pigments ( rvalue ) Server Time
19 May 2024 13:04:50 EDT (-0400)
  Re: declared patterns without pigments ( rvalue )  
From: Mr
Date: 5 Jan 2014 16:20:01
Message: <web.52c9cc4584c18776416484130@news.povray.org>
"Thorsten Froehlich" <nomail@nomail> wrote:
> "Mr" <nomail@nomail> wrote:
> > Hi, is there anyway to predeclare a pattern (preferably with its
> > transformations) so that it can later be used equally within various normals or
> > pigments?
>
> You can use a pattern function, i.e.:
>
> #declare foo = function {
>    pattern {
>      checker
>    }
>  }
>
>  #declare MyNormal = normal {
>      function { foo(x,y,z) }
> }
>
> You find it at the end of section "2.2.1.6.3 Declaring User-Defined Float
> Functions" in http://www.povray.org/documentation/view/3.6.1/231/ .

Thanks to both of you. it works.


Post a reply to this message

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