Fog Tweaks (Patreon)
Content
I've tried making the fog density accurate to other engines (FTEQW), but no luck. The fog density in Retroquad will always look different from other engines, but it looks good enough.
Now the density uses the full 18 bits of the table for indexing, while still using the lowest 2 bits for depth dithering. Some other changes were done to make the density spread more evenly and reach closer to the camera, as you can see if you compare this screenshot with the similar one released before. Density 1 will actually look thicker than "fog 1" in other engines.
The lowest density can't go too low due to how the depth indexing is optimized; density values below 0.1 makes little difference. But you can use the alpha parameter to make the whole fog more transparent.
Fog is something that will always have some significant color banding in Retroquad, specially over dark spots. I haven't tested fog with my custom palette yet, but I guess it wouldn't give much better results.
The color shading maps used for fog and scrolling sky were renamed to use the filename extensions FFM (fog fading map) and HFM (horizon fading map).
Now I'm implementing support for the "fog" field in the map's worldspawn entity, and will release the version 0.9.0 afterwards.