mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Moved projection epsilon to a more reasonable place
This commit is contained in:
parent
db497cc55f
commit
dc08de028c
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ static float PHackValue(std::string sValue)
|
|||
|
||||
void UpdateProjectionHack(int iPhackvalue[], std::string sPhackvalue[])
|
||||
{
|
||||
float fhackvalue1 = 0, fhackvalue2 = 0;
|
||||
float fhackvalue1 = 0, fhackvalue2 = FLT_EPSILON; // hack to fix depth clipping precision issues (such as Sonic Unleashed UI)
|
||||
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 + FLT_EPSILON; // hack to fix depth clipping precision issues (such as Sonic Unleashed UI)
|
||||
g_fProjectionMatrix[15] = 1.0f;
|
||||
|
||||
SETSTAT_FT(stats.g2proj_0, g_fProjectionMatrix[0]);
|
||||
SETSTAT_FT(stats.g2proj_1, g_fProjectionMatrix[1]);
|
||||
|
|
Loading…
Add table
Reference in a new issue