mirror of https://github.com/AxioDL/metaforce.git
Fix other perspective matrix function
This commit is contained in:
parent
c1dd893c72
commit
9ed1fbe40f
|
@ -147,11 +147,11 @@ zeus::CMatrix4f CGraphics::CalculatePerspectiveMatrix(float fovy, float aspect,
|
|||
float rpl = st.x8_right + st.x4_left;
|
||||
float tmb = st.xc_top - st.x10_bottom;
|
||||
float tpb = st.xc_top + st.x10_bottom;
|
||||
float fmn = st.x18_far - st.x14_near;
|
||||
float nmf = g_Proj.x14_near - g_Proj.x18_far;
|
||||
float fpn = st.x18_far + st.x14_near;
|
||||
return zeus::CMatrix4f(2.f * st.x14_near / rml, 0.f, rpl / rml, 0.f,
|
||||
0.f, 2.f * st.x14_near / tmb, tpb / tmb, 0.f,
|
||||
0.f, 0.f, -fpn / fmn, -2.f * st.x18_far * st.x14_near / fmn,
|
||||
0.f, 0.f, fpn / nmf, 2.f * st.x18_far * st.x14_near / nmf,
|
||||
0.f, 0.f, -1.f, 0.f);
|
||||
}
|
||||
|
||||
|
|
2
hecl
2
hecl
|
@ -1 +1 @@
|
|||
Subproject commit c07f5499d0ee670bef971e3b0081fa9e771bc3a8
|
||||
Subproject commit 1dd20237e8a42c3d04b2069cadb0d58513f60836
|
Loading…
Reference in New Issue