logoalt Hacker News

magicalhippo • today at 9:58 AM • 0 replies • view on HN

From what I can gather it's mainly a holdover from Quake[1] and the limited colors afforded by an 8-bit palette.

The lightmaps and such support colored lighting, but by default the software renderer just used the max IIRC of the color channels as a monochrome light value.

Just for giggles I recently had Claude rewrite the software renderer for Quake 2 to support true-color output and so could enable `sw_colorlight 1` when using the software renderer. Doing so results in the same reddish tint as the GL renderer, but with the software renderer aesthetics.

I think you can set `sw_colorlight` to `1` even in the classic renderer, but it'll look quite bad due to the limited colors afforded by the 8-bit palette.

Makes sense I guess, the plot takes place on Mars, so perhaps that's why they went heavy on the red-orange.

edit: uploaded some screenshots to show the difference:

Classic SW with `sw_colorlight 1`: https://imglink.cc/cdn/fv5Z3WB_aS.jpg

True-color SW with `sw_colorlight 1`: https://imglink.cc/cdn/fx8prYfGs6.jpg

[1]: https://quake.fandom.com/wiki/Colored_lightning