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:
skidau 2014-12-04 09:10:36 +11:00
commit bfc62d2ada
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ static float PHackValue(std::string sValue)
void UpdateProjectionHack(int iPhackvalue[], std::string sPhackvalue[]) 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; float fhacksign1 = 1.0, fhacksign2 = 1.0;
const char *sTemp[2]; const char *sTemp[2];