Skyfog & fogdensity (mapinfo)

Moderator: Graf Zahl

Locked
User avatar
The Ultimate DooMer
Persecution Complex
Posts: 152
Joined: Tue Nov 08, 2005 23:04
Location: Industrial Zone
Contact:

Skyfog & fogdensity (mapinfo)

Post by The Ultimate DooMer »

Would it be possible to enable these to be modified in a script (like the normal fog) or is it one of those things that can only be set during initialisation?

This would be very useful for making an outdoor area with horizons foggier over time (without the long-running problem of sky textures being unaffected by fog). I know the colour can be changed dynamically (by altering the fog colour in the sector(s) the sky is in), but the density stays the same.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Skyfog & fogdensity (mapinfo)

Post by Graf Zahl »

No, these are values that can easily be changed.

I added a new special, 'SetGlobalFogParameters' for this.
Usage:

SetGlobalFogParameters(FOGP_DENSITY, value);
SetGlobalFogParameters(FOGP_OUTSIDEDENSITY, value);
SetGlobalFogParameters(FOGP_SKYFOG, value);

Values are identical to MAPINFO settings.
Locked

Return to “Closed Feature Suggestions”