From d419b820d51302858550241446bd640e89b4d29c Mon Sep 17 00:00:00 2001 From: Julia Nechaevskaya Date: Sun, 17 Dec 2023 20:52:26 +0300 Subject: [PATCH] Brightmaps for two sided mid-textures --- src/r_segs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/r_segs.c b/src/r_segs.c index da9da9c1..2f4cc408 100644 --- a/src/r_segs.c +++ b/src/r_segs.c @@ -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: