summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-08-02 22:22:49 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-08-02 22:22:49 +0200
commitfe958ec34e7087d959c76f25be68fd672f43b8d0 (patch)
tree7c26ec20c20748ba371fe9feafef832ef88437ab
parentsampman done (diff)
downloadre3-fe958ec34e7087d959c76f25be68fd672f43b8d0.tar
re3-fe958ec34e7087d959c76f25be68fd672f43b8d0.tar.gz
re3-fe958ec34e7087d959c76f25be68fd672f43b8d0.tar.bz2
re3-fe958ec34e7087d959c76f25be68fd672f43b8d0.tar.lz
re3-fe958ec34e7087d959c76f25be68fd672f43b8d0.tar.xz
re3-fe958ec34e7087d959c76f25be68fd672f43b8d0.tar.zst
re3-fe958ec34e7087d959c76f25be68fd672f43b8d0.zip
-rw-r--r--src/render/Shadows.cpp22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp
index 6bc072ce..ccdc457c 100644
--- a/src/render/Shadows.cpp
+++ b/src/render/Shadows.cpp
@@ -423,7 +423,7 @@ CShadows::StoreShadowToBeRendered(uint8 ShadowTexture, CVector *pPosn,
}
}
- ASSERT(false);
+ //ASSERT(false);
}
void
@@ -545,11 +545,7 @@ CShadows::StoreCarLightShadow(CAutomobile *pCar, int32 nID, RwTexture *pTexture,
{
float fDistToCam = Sqrt(fDistToCamSqr);
-#ifndef FIX_BUGS
- if ( fDistToCam >= (fDrawDistance*(1.0f-(1.0f/4.0f))) && !bSpecialCam ) // BUG: must be 3.0
-#else
- if ( fDistToCam >= (fDrawDistance*(1.0f-(1.0f/3.0f))) && !bSpecialCam )
-#endif
+ if ( fDistToCam >= (fDrawDistance*(1.0f-(1.0f/4.0f))) && !bSpecialCam ) // BUG? must be 3.0?
{
//fDistToCam == 0 -> 3
//fDistToCam == fDrawDistance -> 0
@@ -607,22 +603,12 @@ CShadows::StoreShadowForPedObject(CEntity *pPedObject, float fDisplacementX, flo
{
float fDistToCam = Sqrt(fDistToCamSqr);
-#ifndef FIX_BUGS
//fDistToCam == 0 -> 2
//fDistToCam == fDrawDistance -> -2
- float fMult = 1.0f - (4.0f / fDrawDistance) * (fDistToCam - (fDrawDistance*(1.0f/4.0f))); // BUG: negative
-#else
- //fDistToCam == 0 -> 4
- //fDistToCam == fDrawDistance -> 0
- float fMult = 1.0f - (4.0f / fDrawDistance) * (fDistToCam - (fDrawDistance*(1.0f-(1.0f/4.0f))) );
-#endif
+ float fMult = 1.0f - (4.0f / fDrawDistance) * (fDistToCam - (fDrawDistance*(1.0f/4.0f))); // BUG ? negative
int32 nColorStrength;
-#ifndef FIX_BUGS
- if ( fDistToCam >= (fDrawDistance*(1.0f/4.0f)) ) // BUG: negative
-#else
- if ( fDistToCam >= (fDrawDistance*(1.0f-(1.0f/4.0f))) )
-#endif
+ if ( fDistToCam >= (fDrawDistance*(1.0f/4.0f)) ) // BUG ? negative
nColorStrength = (int32)(CTimeCycle::GetShadowStrength() * fMult);
else
nColorStrength = CTimeCycle::GetShadowStrength();