mirror of
https://github.com/mrxenginner/reVC.git
synced 2026-10-11 09:48:15 +08:00
small fixes
This commit is contained in:
1 parent
52644192e3
commit
3c3b1aadc0
9 files changed
+33
-28
No files matched your search
@@ -642,12 +642,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,
|
||||
|
||||
Reference in new issue
Block a user