diff options
| author | Leonard Kugis <leonard@kug.is> | 2026-10-05 01:36:32 +0200 |
|---|---|---|
| committer | Leonard Kugis <leonard@kug.is> | 2026-10-05 01:36:32 +0200 |
| commit | 57fdd82018e8f3449987cca19f3a41f630d7d62e (patch) | |
| tree | 50e8f0dfc58c9dd704ab12c7490b4a1898a02f72 /WinQuake/d_polyse.c | |
| parent | 5ba1b06a2cbcbe9b2823dce3ac05663344075029 (diff) | |
| download | quake-pum-57fdd82018e8f3449987cca19f3a41f630d7d62e.tar.gz | |
Implemented PuM pipeline
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;
}
}
|
