mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Added projection matrix epsilon that fixes depth clipping issues in some games
This commit is contained in:
parent
ce3a039eed
commit
db497cc55f
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Reference in a new issue