mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 09:43:45 +01:00
Matrix depth fix. Still have depth issues though.
This commit is contained in:
1 parent
1970d38650
commit
697f3a8f94
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user