POV-Ray : Newsgroups : povray.general : Radiosity Q and small feature request... : Re: Radiosity Q and small feature request... Server Time
12 Aug 2024 03:27:41 EDT (-0400)
  Re: Radiosity Q and small feature request...  
From: Ron Parker
Date: 1 Apr 1999 08:13:51
Message: <3703710f.0@news.povray.org>
On Thu, 1 Apr 1999 18:49:00 +1000, Lance Birch <lan### [at] usanet> wrote:
>I thought it was just an operator... like, it just switches it on, it
>doesn't have a value supplied...  I also thought that the metallic keyword
>sets the shading mode of the object, so it can't reallt have a float
>associated with it anyway... but I could be wrong on that one.

Use the source, Luke!  I've pasted the part of parstxtr.c that parses
this below.  Briefly, when POV sees the word "metallic" it sets the 
"metallicness" of the texture to one, then looks to see if the next
token is a number.  If it is, it sets the "metallicness" to that number;
otherwise, it puts the next token back and ignores it.  If the docs 
don't mention this, then it was omitted and the docs should be fixed.

CASE (METALLIC_TOKEN)
  New->Metallic = 1.0;
  EXPECT
    CASE_FLOAT
      New->Metallic = Parse_Float();
      EXIT
    END_CASE

    OTHERWISE
      UNGET
      EXIT
    END_CASE
  END_EXPECT
END_CASE


Post a reply to this message

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