POV-Ray : Newsgroups : povray.beta-test : Ambient and diffuse for include files? : Re: Ambient and diffuse for include files? Server Time
21 Dec 2025 04:25:24 EST (-0500)
  Re: Ambient and diffuse for include files?  
From: Cousin Ricky
Date: 19 Dec 2025 20:14:24
Message: <6945f870$1@news.povray.org>
On 2022-03-08 07:40 (-4), Bald Eagle wrote:
> Cousin Ricky <ric### [at] yahoocom> wrote:
> 
>> One way to solve this would be to declare a single pair of variables
>> that would be used by all six include files.  Third party include files
>> would be encouraged to access these variables.  What do you think of
>> this proposal?  Does anyone have a better idea?
> 
> Absent my current ability to formulate ways other than that one, I'd say that
> starting all of those include files with an #include statement that references a
> master include would be a good way to do it, in case any future tweaks happened.

What do you all think of the attached file?  Are there any other
variables we can add?

I added Defaults_Gamma in case an include file needs to correct for a
scene's assumed_gamma.  (I already have 2 Object Collection modules that
need to know a scene's assumed_gamma in order to return a proper color.)


Post a reply to this message


Attachments:
Download 'defaults.inc.zip' (1 KB)

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