Matrix depth fix. Still have depth issues though.

This commit is contained in:
Henrik Rydgard committed 2016-03-20 19:31:02 +01:00
1 parent 1970d38650
commit 697f3a8f94
1 file changed
+1 -1
+1 -1
View File
@@ -162,7 +162,7 @@ static void ConvertProjMatrixToVulkan(Matrix4x4 &in, bool invertedX, bool invert
if (invertedY)
yoff = -yoff;
const Vec3 trans(xoff, yoff, gstate_c.vpZOffset + 0.5f);
const Vec3 trans(xoff, yoff, gstate_c.vpZOffset * 0.5f + 0.5f);
const Vec3 scale(gstate_c.vpWidthScale, gstate_c.vpHeightScale, gstate_c.vpDepthScale * 0.5f);
in.translateAndScale(trans, scale);
}