From b8ecaf336cf9a87bd67d8090d731f1dcb2bc3803 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 2 Jun 2024 21:38:33 +0200 Subject: [PATCH] fix ogl shadows for the 500th time --- src/hardware/hw_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index fdb8b3a01..b3505612c 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -3624,6 +3624,7 @@ static void HWR_DrawDropShadow(mobj_t *thing, fixed_t scale) INT32 shader = SHADER_NONE; UINT8 i; SINT8 flip = P_MobjFlip(thing); + UINT8 lightlevel = 0; fixed_t scalemul; fixed_t floordiff; @@ -3718,7 +3719,9 @@ static void HWR_DrawDropShadow(mobj_t *thing, fixed_t scale) shadowVerts[0].t = shadowVerts[1].t = gpatch->max_t; if (thing->whiteshadow) - HWR_Lighting(&sSurf, 255, NULL); + lightlevel = 255; // make crap FULLBRIGHT + + HWR_Lighting(&sSurf, lightlevel, NULL); sSurf.PolyColor.s.alpha = 127; // always draw half translucent