Fix other perspective matrix function

This commit is contained in:
Jack Andersen 2016-04-01 18:25:47 -10:00
parent c1dd893c72
commit 9ed1fbe40f
2 changed files with 3 additions and 3 deletions

View File

@ -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

@ -1 +1 @@
Subproject commit c07f5499d0ee670bef971e3b0081fa9e771bc3a8
Subproject commit 1dd20237e8a42c3d04b2069cadb0d58513f60836