POV-Ray : Newsgroups : povray.beta-test : Ambient and diffuse for include files? : Re: Ambient and diffuse for include files? Server Time
9 Jan 2026 14:12:45 EST (-0500)
  Re: Ambient and diffuse for include files?  
From: Bald Eagle
Date: 6 Jan 2026 10:10:00
Message: <web.695d253f485c224d44e64d2825979125@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:

> > Are there any other variables we can add?

I believe there was some discussion about making tau available even if v3.8
wasn't being used.

Euler's number e

not_0 = 1/256; // for use in rgb values

Recently we explored val () in terms of accessing NAN and INF.
Perhaps have variables with these values predefined.

With regard to "epsilon", it might be useful at this juncture to differentiate
between all the various different small values.
There are several hard-coded limits in source, and those "epsilons" ought to be
be named. "Coincident_Epsilon", etc.
A mathematical Epsilon might be defined as the smallest possible value able to
be reliably represented by floating point across multiple systems.

And, following that, perhaps name some variable to represent the largest value.

Phi

phi

golden angle


Also, upon editing your file, I discovered (as I suspected but lazily dismissed
- throttle was engaged but steering was not) that your file is structured
properly and your final #end is the proper closing directive.


While only tangentially related, it might be worth discussing elsewhere what
constants, functions, transforms, etc we would like to see in case folks want a
nice library of such things to be readily available.

Hopefully when I get some free time and am in one of those manic phases, I can
edit my wiki page to list such things and have links to actual files.

Edited version attached.

- BE


Post a reply to this message


Attachments:
Download 'defaults.inc.txt' (2 KB)

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