Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix RenderExtraPlayerShadows 2
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/render/Shadows.cpp
There are no files selected for viewing
|
|
@@ -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;
|
|
|
|