POV-Ray : Newsgroups : povray.unofficial.patches : media fire : Re: media fire Server Time
30 Jul 2024 00:24:59 EDT (-0400)
  Re: media fire  
From: Chris Huff
Date: 18 Dec 2000 09:11:44
Message: <chrishuff-8BCA5B.09124818122000@news.povray.org>

<jbe### [at] enstfr> wrote:

> 	Well, it is an optional feature of emission media. I added two optional
> keywords: emission method and emission extinction that have meaning only
> in the case of emission media.

Oh, ok...I thought it was more like "emission2".


> I would have preferred a syntax similar to scattering (emission { 
> type, color, extinction }) but I haven't taken the time to find out 
> how to do this while staying compatible with the current syntax.

Something like this should work:

Get_Token();
if(Token.TokenId == LEFT_CURLY_TOKEN)
{
    Unget_Token();
    Parse_Begin();
    ...parse your syntax here
    Parse_End();
}
else
{
    Unget_Token();
    ...parse standard syntax...
}

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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