Fog Studies (Patreon)
Published:
2021-11-01 03:30:49
Imported:
2026-06
Content
The fastest way to start implementing fog is to implement it as a Doom-style diminishing lighting effect. The implementation in this screenshot is not dithered and does not use the Quadricolor format yet, so it's not smooth.
Fog and scrolling skies will likely share the same color shading maps, using the same format as the color shading map used for lighting. This also means that I'll likely make the sky horizon fading effect use the same color as the fog, when fog is used in the map.
This initial implementation has a 20% impact on performance, but I haven't tried optimizing it yet. Several optimization techniques will be tried to make it as lightweight as possible, but I'm not sure how faster it can get.