From fba4c51f6b54bda7f693672db3343b113218f781 Mon Sep 17 00:00:00 2001 From: Fire_Head Date: Tue, 21 Apr 2020 22:52:42 +0300 Subject: [PATCH 1/2] fix RenderExtraPlayerShadows --- src/render/Shadows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp index 319cdd3c..f14b6ec1 100644 --- a/src/render/Shadows.cpp +++ b/src/render/Shadows.cpp @@ -1642,7 +1642,7 @@ CShadows::RenderExtraPlayerShadows(void) int32 nColorStrength; if ( fLightDist < fRadius*0.5f ) - nColorStrength = CTimeCycle::GetLightShadowStrength(); + nColorStrength = (5*CTimeCycle::GetLightShadowStrength()/8); else nColorStrength = int32(CTimeCycle::GetLightShadowStrength() * fMult); From 828dc85be5a7a24bdcf6aaca2eeda1756de63bfd Mon Sep 17 00:00:00 2001 From: Fire_Head Date: Tue, 21 Apr 2020 22:53:55 +0300 Subject: [PATCH 2/2] fix RenderExtraPlayerShadows 2 --- src/render/Shadows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp index f14b6ec1..d5970ebe 100644 --- a/src/render/Shadows.cpp +++ b/src/render/Shadows.cpp @@ -1644,7 +1644,7 @@ CShadows::RenderExtraPlayerShadows(void) if ( fLightDist < fRadius*0.5f ) nColorStrength = (5*CTimeCycle::GetLightShadowStrength()/8); else - nColorStrength = int32(CTimeCycle::GetLightShadowStrength() * fMult); + nColorStrength = int32((5*CTimeCycle::GetLightShadowStrength()/8) * fMult); float fInv = 1.0f / fLightDist; vecLight.x *= fInv;