From d3a4dacb6c2ee96f87a3b25faa3b4d6509539e2d Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 7 Feb 2024 09:15:17 +0100 Subject: [PATCH] fix for opengl sprite shadow colour --- src/hardware/hw_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 2265928d5..79d9e5085 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4063,9 +4063,9 @@ static void HWR_DrawSpriteShadow(gr_vissprite_t *spr, GLPatch_t *gpatch, float t swallVerts[0].t = swallVerts[1].t = gpatch->max_t; } - sSurf.PolyColor.s.red = 0x00; - sSurf.PolyColor.s.blue = 0x00; - sSurf.PolyColor.s.green = 0x00; + sSurf.PolyColor.s.red = 0x01; + sSurf.PolyColor.s.blue = 0x01; + sSurf.PolyColor.s.green = 0x01; // shadow is always half as translucent as the sprite itself if (!cv_translucency.value) // use default translucency (main sprite won't have any translucency)