Frustum Fix 1

This commit is contained in:
elijah-thomas774
2025-03-30 01:25:13 -04:00
parent 70de775509
commit 3df431e4f0
+3 -4
View File
@@ -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;