From e2d3f26a351ec14d72c00f67e38913a049f42921 Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Wed, 12 May 2021 18:55:40 +0800 Subject: [PATCH] Fixed wrong alpha value being applied on sprite shadows in the hardware renderer. --- src/rendering/hwrenderer/scene/hw_sprites.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/hwrenderer/scene/hw_sprites.cpp b/src/rendering/hwrenderer/scene/hw_sprites.cpp index 641c69294..a46462309 100644 --- a/src/rendering/hwrenderer/scene/hw_sprites.cpp +++ b/src/rendering/hwrenderer/scene/hw_sprites.cpp @@ -1135,7 +1135,7 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t if (isSpriteShadow) { RenderStyle = STYLE_Stencil; - ThingColor = MAKEARGB(ColorMatcher.Pick(0, 0, 0), 0, 0, 0); + ThingColor = MAKEARGB(255, 0, 0, 0); trans = 0.5f; hw_styleflags = STYLEHW_NoAlphaTest; }