|
![](/i/fill.gif) |
<jbe### [at] enst fr> 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] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |