I just realized I never posted here about my own replacement ref_soft.dll that adds colored lighting and widescreen waterwarp support to the Quake 2 software renderer. Alphatest and transparency are improved as a bonus. darklights work. Not to mention the ddraw palette problem fixed- this one only uses DIB even for fullscreen! Knightmare’s ‘unofficial Q2 patch’ 3.24 is supported, although haven’t tried it on any others.
Unsigned short fix (thanks to Knightmare for the tip) http://forums.inside3d.com/viewtopic.php?f=3&t=5308]
Oh, yeah, and there’s a cvar called ‘sw_transmooth’ that dithers transparent surfaces.
Download dll: http://qbism.com/_extfiles/ref_soft_color.zip
Source code: http://qbism.com/_extfiles/ref_soft_color_src.zip
Notes about the code- It can be copied into the 3.24 source folder. (Make a backup for this purpose.) But I don’t have VC 6, so I built it with VS 2013 (project included in the ref_soft folder).
This started with the colored light code leilei added to stock Q2. Shaded light was completed among other things with head-scratching and borrowed pieces of engoo. Waterwarp improvement and dithering are from AROS Quake2.
That orange. r_lightsaturation = 2
Maric’s ‘The Blue Devoid’