1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 01:20:01 +00:00

Merge pull request #483 from Fire-Head/master

fix RenderExtraPlayerShadows
This commit is contained in:
Fire_Head 2020-04-21 22:56:16 +03:00 committed by GitHub
commit f754e05321
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1642,9 +1642,9 @@ CShadows::RenderExtraPlayerShadows(void)
int32 nColorStrength; int32 nColorStrength;
if ( fLightDist < fRadius*0.5f ) if ( fLightDist < fRadius*0.5f )
nColorStrength = CTimeCycle::GetLightShadowStrength(); 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;