mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
I have recently learned that pre-multiplied alpha is the correct way to do compositing, which is pretty much what the 2d pass does (actually, all passes, but...). This required ensuring the color factor passed to the fragment shader is pre-multiplied (a little silly for cshifts as they used to be pre-multiplied but were un-pre-multiplied early in QF's history and I don't feel like fixing that right now as it affects all renderers), and also pre-multiplying alpha when converting from 8-bit palette to rgba as the palette entry for transparent has that funky pink (which is used in full-brights). |
||
---|---|---|
.. | ||
renderer | ||
targets | ||
Makemodule.am |