Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
VertexShaderManager: Remove a hardcoded projection hack.
  • Loading branch information
NeoBrainX authored and NeoBrainX committed Dec 30, 2013
1 parent bbde075 commit 3cfa04b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Source/Core/VideoCommon/Src/VertexShaderManager.cpp
Expand Up @@ -411,9 +411,10 @@ void VertexShaderManager::SetConstants()

g_fProjectionMatrix[12] = 0.0f;
g_fProjectionMatrix[13] = 0.0f;
// donkopunchstania: GC GPU rounds differently?
// -(1 + epsilon) so objects are clipped as they are on the real HW
g_fProjectionMatrix[14] = -1.00000011921f;
// donkopunchstania suggested the GC GPU might round differently
// He had thus changed this to -(1 + epsilon) to fix clipping issues.
// I (neobrain) don't think his conjecture is true and thus reverted his change.
g_fProjectionMatrix[14] = -1.0f;
g_fProjectionMatrix[15] = 0.0f;

SETSTAT_FT(stats.gproj_0, g_fProjectionMatrix[0]);
Expand Down

0 comments on commit 3cfa04b

Please sign in to comment.