Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
fix RenderExtraPlayerShadows 2
  • Loading branch information
Fire-Head committed Apr 21, 2020
1 parent fba4c51 commit 828dc85be5a7a24bdcf6aaca2eeda1756de63bfd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/render/Shadows.cpp
@@ -1644,7 +1644,7 @@ CShadows::RenderExtraPlayerShadows(void)
if ( fLightDist < fRadius*0.5f ) if ( fLightDist < fRadius*0.5f )
nColorStrength = (5*CTimeCycle::GetLightShadowStrength()/8); nColorStrength = (5*CTimeCycle::GetLightShadowStrength()/8);
else else
nColorStrength = int32(CTimeCycle::GetLightShadowStrength() * fMult); nColorStrength = int32((5*CTimeCycle::GetLightShadowStrength()/8) * fMult);


float fInv = 1.0f / fLightDist; float fInv = 1.0f / fLightDist;
vecLight.x *= fInv; vecLight.x *= fInv;

0 comments on commit 828dc85

Please sign in to comment.