Page 1 of 1

Fog

Posted: Thu May 06, 2010 17:42
by RaVeN
There is possible to make switch?
fog affect sky [on, off] (default off)
if on -> fog draws over sky texture too sky fogged like simple surface

Re: Fog

Posted: Thu May 06, 2010 18:39
by NeuralStunner
Fog is applied based on sector lighting, (in fact it just recolors the usual fade,) but skies are always drawn fullbright, regardless of the that lighting. What this would require is a global "light level" of sorts for the sky texture. Even then, I doubt it's that simple.

Re: Fog

Posted: Thu May 06, 2010 19:09
by Gez
I think Vavoom got such a feature recently. However, Vavoom's code is GPL so we can't take it* (plus I'm sure the internal workings of the renderer are so massively different that it would be pointless anyway).

[* I kinda have the feeling that the other way around doesn't bother JL too much, though.]

Re: Fog

Posted: Thu May 06, 2010 20:20
by Graf Zahl
NeuralStunner wrote:Fog is applied based on sector lighting, (in fact it just recolors the usual fade,) but skies are always drawn fullbright, regardless of the that lighting. What this would require is a global "light level" of sorts for the sky texture. Even then, I doubt it's that simple.

There's a 'skyfog' MAPINFO option. That value can also set via action special SetGlobalFogParameter.

Re: Fog

Posted: Thu May 06, 2010 21:03
by NeuralStunner
Graf Zahl wrote:There's a 'skyfog' MAPINFO option. That value can also set via action special SetGlobalFogParameter.
Aha! I had forgotten. Thanks. :)