diff options
| author | Leonard Kugis <leonard@kug.is> | 2026-09-16 14:30:42 +0200 |
|---|---|---|
| committer | Leonard Kugis <leonard@kug.is> | 2026-09-16 14:30:42 +0200 |
| commit | 860fbcced547ec6795622c142d925a51db470c86 (patch) | |
| tree | 270fc8a1a351d7c2a6150f51f12733e0d3c788e2 /WinQuake/d_polyse.c | |
| parent | 6b7661a7c295146f3cac60d999752045933a2cf7 (diff) | |
| download | quake-pum-860fbcced547ec6795622c142d925a51db470c86.tar.gz | |
hook PuM into the software renderer
Diffstat (limited to 'WinQuake/d_polyse.c')
| -rw-r--r-- | WinQuake/d_polyse.c | 9 |
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;
}
}
|
