diff options
author | aap <aap@papnet.eu> | 2020-05-24 15:14:27 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-25 18:33:34 +0200 |
commit | 7bf833785411955c2bcf35ed55e9d206facbc575 (patch) | |
tree | a69383e116ca35a5c6ac14e40a462d29b8b46c87 /src/render/Shadows.cpp | |
parent | how did saving even work in original III? (diff) | |
download | re3-7bf833785411955c2bcf35ed55e9d206facbc575.tar re3-7bf833785411955c2bcf35ed55e9d206facbc575.tar.gz re3-7bf833785411955c2bcf35ed55e9d206facbc575.tar.bz2 re3-7bf833785411955c2bcf35ed55e9d206facbc575.tar.lz re3-7bf833785411955c2bcf35ed55e9d206facbc575.tar.xz re3-7bf833785411955c2bcf35ed55e9d206facbc575.tar.zst re3-7bf833785411955c2bcf35ed55e9d206facbc575.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Shadows.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp index c512f35c..fac35aeb 100644 --- a/src/render/Shadows.cpp +++ b/src/render/Shadows.cpp @@ -643,12 +643,12 @@ CShadows::StoreShadowForPole(CEntity *pPole, float fOffsetX, float fOffsetY, flo PolePos.y += fOffsetX * pPole->GetRight().y + fOffsetY * pPole->GetForward().y; PolePos.z += fOffsetZ; - PolePos.x += -CTimeCycle::GetSunPosition().x * (fPoleHeight / 2); - PolePos.y += -CTimeCycle::GetSunPosition().y * (fPoleHeight / 2); + PolePos.x += -CTimeCycle::GetSunDirection().x * (fPoleHeight / 2); + PolePos.y += -CTimeCycle::GetSunDirection().y * (fPoleHeight / 2); StoreStaticShadow((uintptr)pPole + nID + _TODOCONST(51), SHADOWTYPE_DARK, gpPostShadowTex, &PolePos, - -CTimeCycle::GetSunPosition().x * (fPoleHeight / 2), - -CTimeCycle::GetSunPosition().y * (fPoleHeight / 2), + -CTimeCycle::GetSunDirection().x * (fPoleHeight / 2), + -CTimeCycle::GetSunDirection().y * (fPoleHeight / 2), CTimeCycle::GetShadowSideX() * fPoleWidth, CTimeCycle::GetShadowSideY() * fPoleWidth, 2 * (int32)((pPole->GetUp().z - 0.5f) * CTimeCycle::GetShadowStrength() * 2.0f) / 3, |