From 00e121b1dc83a020f63a7d7871b5f366a46a13e8 Mon Sep 17 00:00:00 2001
From: chromaticpipe <127907268+chromaticpipe@users.noreply.github.com>
Date: Thu, 20 Mar 2025 06:21:09 -0500
Subject: [PATCH] Make GL spriteshadows behave more like their 2.1
 counterparts(might make an option later)

Make GL spriteshadows behave more like their 2.1 counterparts(might make an option later)
---
 src/hardware/hw_main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c
index f7dd31c00..15bd12c08 100644
--- a/src/hardware/hw_main.c
+++ b/src/hardware/hw_main.c
@@ -2919,8 +2919,11 @@ static void HWR_DrawDropShadow(mobj_t *thing, gl_vissprite_t *spr, fixed_t scale
 	{
 		float oldx = shadowVerts[i].x;
 		float oldy = shadowVerts[i].z;
+		if(!(cv_shadow.value == 2))
+		{
 		shadowVerts[i].x = fx + ((oldx - fx) * gl_viewcos) - ((oldy - fy) * gl_viewsin);
 		shadowVerts[i].z = fy + ((oldx - fx) * gl_viewsin) + ((oldy - fy) * gl_viewcos);
+		}
 	}
 
 	if (groundslope)
-- 
GitLab