From 57fdd82018e8f3449987cca19f3a41f630d7d62e Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Mon, 5 Oct 2026 01:36:32 +0200 Subject: Implemented PuM pipeline --- WinQuake/d_polyse.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'WinQuake/d_polyse.c') diff --git a/WinQuake/d_polyse.c b/WinQuake/d_polyse.c index ed2b6b6..cac6dc0 100644 --- a/WinQuake/d_polyse.c +++ b/WinQuake/d_polyse.c @@ -168,6 +168,15 @@ void D_PolysetDrawFinalVerts (finalvert_t *fv, int numverts) *zbuf = z; pix = skintable[fv->v[3]>>16][fv->v[2]>>16]; pix = ((byte *)acolormap)[pix + (fv->v[4] & 0xFF00) ]; +#ifdef RENDER_PUM + if (PUM_Active ()) + { + byte pumtex = (byte)pix; + PUM_LightMaskAndTexel (&pumtex, (const byte *)&pix, + (const byte *)&fv->v[4], sizeof (pix)); + pix = pumtex; + } +#endif d_viewbuffer[d_scantable[fv->v[1]] + fv->v[0]] = pix; } } -- cgit v1.2.3