Merge pull request #1366 from kayru/orthographic_projection_epsilon
Added projection matrix epsilon that fixes depth clipping issues in some games
This commit is contained in:
commit
bfc62d2ada
|
@ -88,7 +88,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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue