From 7ba417b73d6b5e049657270ccc37d7fd92ad2282 Mon Sep 17 00:00:00 2001 From: Yuriy O'Donnell Date: Fri, 5 Dec 2014 09:41:41 +0100 Subject: [PATCH] Moved projection epsilon back to g_fProjectionMatrix[15], which essentially scales vertices instead of just biasing. --- Source/Core/VideoCommon/VertexShaderManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp index b0e3afdaaa..c87c9297ba 100644 --- a/Source/Core/VideoCommon/VertexShaderManager.cpp +++ b/Source/Core/VideoCommon/VertexShaderManager.cpp @@ -87,7 +87,7 @@ static float PHackValue(std::string sValue) void UpdateProjectionHack(int iPhackvalue[], std::string sPhackvalue[]) { - float fhackvalue1 = 0, fhackvalue2 = FLT_EPSILON; // hack to fix depth clipping precision issues (such as Sonic Unleashed UI) + float fhackvalue1 = 0, fhackvalue2 = 0; float fhacksign1 = 1.0, fhacksign2 = 1.0; const char *sTemp[2]; @@ -475,7 +475,7 @@ void VertexShaderManager::SetConstants() g_fProjectionMatrix[13] = 0.0f; g_fProjectionMatrix[14] = 0.0f; - g_fProjectionMatrix[15] = 1.0f; + g_fProjectionMatrix[15] = 1.0f + FLT_EPSILON; // hack to fix depth clipping precision issues (such as Sonic Unleashed UI) SETSTAT_FT(stats.g2proj_0, g_fProjectionMatrix[0]); SETSTAT_FT(stats.g2proj_1, g_fProjectionMatrix[1]);