Brightmaps for two sided mid-textures

This commit is contained in:
Julia Nechaevskaya 2023-12-17 20:52:26 +03:00
parent 48ca9861b7
commit d419b820d5

View File

@ -162,7 +162,10 @@ void R_RenderMaskedSegRange(drawseg_t *ds, int x1, int x2)
if (index >= MAXLIGHTSCALE )
index = MAXLIGHTSCALE-1;
dc_colormap[0] = dc_colormap[1] = walllights[index];
// [crispy] brightmaps for two sided mid-textures
dc_brightmap = texturebrightmap[texnum];
dc_colormap[0] = walllights[index];
dc_colormap[1] = STRICTMODE(brightmaps) ? fullcolormap : dc_colormap[0];
}
// killough 3/2/98: