POV-Ray : Newsgroups : povray.general : long syntax : Re: long syntax Server Time
6 Aug 2024 04:23:41 EDT (-0400)
  Re: long syntax  
From: TinCanMan
Date: 24 Jul 2002 12:41:00
Message: <3d3ed89c@news.povray.org>
> > #macro Fin(Dif, Amb, Spec, Rough, Refl)
> >     finish {
> >         diffuse Dif
> >         ambient Amb
> >         specular Spec
> >         roughness Rough
> >         reflection Refl
> >     }
> > #end
>

No need for all that.  Just create an include with macros along the lines
of:


#macro fin() finish #end

and use it like:
fin() { ambient 0 diffuse .3 reflection { .2 .4 } metallic .7 brilliance
1.2 }

no need to pass arguments at all and would use only one extra character
beyond the "@fin" you suggested.

I personally have no use for it as I'm perfectly comfortable with the
current syntax.  And that whole "@@" thing just weirds me out.

-tgq


Post a reply to this message

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