2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-16 10:57:02 +00:00

Remove forRenderer from CGraphics PerspectiveProjectionMatrix

This commit is contained in:
2022-03-05 18:30:30 -05:00
parent 6b1948176a
commit 84b6fcfb44
20 changed files with 61 additions and 125 deletions

View File

@@ -44,9 +44,8 @@ void CGameCamera::SetActive(bool active) {
zeus::CMatrix4f CGameCamera::GetPerspectiveMatrix() const {
if (x170_24_perspDirty) {
const_cast<CGameCamera*>(this)->xec_perspectiveMatrix =
CGraphics::CalculatePerspectiveMatrix(x15c_currentFov, x168_aspect, x160_znear, x164_zfar, false);
const_cast<CGameCamera*>(this)->x170_24_perspDirty = false;
xec_perspectiveMatrix = CGraphics::CalculatePerspectiveMatrix(x15c_currentFov, x168_aspect, x160_znear, x164_zfar);
x170_24_perspDirty = false;
}
return xec_perspectiveMatrix;