From 3df431e4f0c7c11f09d8d1f8dfa16823e38b1ac7 Mon Sep 17 00:00:00 2001 From: elijah-thomas774 Date: Sun, 30 Mar 2025 01:25:13 -0400 Subject: [PATCH] Frustum Fix 1 --- src/egg/gfx/eggFrustum.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/egg/gfx/eggFrustum.cpp b/src/egg/gfx/eggFrustum.cpp index d7c9e039..59eafd69 100644 --- a/src/egg/gfx/eggFrustum.cpp +++ b/src/egg/gfx/eggFrustum.cpp @@ -4,7 +4,6 @@ #include "egg/gfx/eggStateGX.h" #include "nw4r/math/math_arithmetic.h" - void eggFrustum_float_ordering() { 1.0f; } @@ -201,12 +200,12 @@ void Frustum::GetOrthographicParam_(f32 *p) const { f32 invHor = 1.0f / (r - l); f32 invVert = 1.0f / (t - b); f32 invZ = 1.0f / (mFarZ - mNearZ); - + p[0] = 1.0f; p[1] = invHor * 2.0f; - p[3] = invVert * 2.0f; - p[2] = invHor * -(r + l); + p[3] = invVert * 2.0f; + p[4] = invVert * -(t + b); p[5] = -1.0f * invZ; p[6] = -mFarZ * invZ;