Skip to content

Commit

Permalink
Matrix depth fix. Still have depth issues though.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Mar 20, 2016
1 parent 1970d38 commit 697f3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Vulkan/ShaderManagerVulkan.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 697f3a8

Please sign in to comment.