aboutsummaryrefslogtreecommitdiffstats
path: root/WinQuake/d_polyse.c
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2026-09-16 14:30:42 +0200
committerLeonard Kugis <leonard@kug.is>2026-09-16 14:30:42 +0200
commit860fbcced547ec6795622c142d925a51db470c86 (patch)
tree270fc8a1a351d7c2a6150f51f12733e0d3c788e2 /WinQuake/d_polyse.c
parent6b7661a7c295146f3cac60d999752045933a2cf7 (diff)
downloadquake-pum-860fbcced547ec6795622c142d925a51db470c86.tar.gz
hook PuM into the software renderer
Diffstat (limited to 'WinQuake/d_polyse.c')
-rw-r--r--WinQuake/d_polyse.c9
1 files changed, 9 insertions, 0 deletions
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;
}
}