GXTransform: Projection matrix depth fix

This commit is contained in:
Luke Street 2022-08-09 02:26:02 -04:00
parent c060e1da6b
commit 5d0848d428
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
#include "gx.hpp"
#include <cfloat>
constexpr aurora::Mat4x4<float> DepthCorrect{
{1.f, 0.f, 0.f, 0.f},
{0.f, 1.f, 0.f, 0.f},
{0.f, 0.f, 1.f, 0.f},
{0.f, 0.f, 1.f + FLT_EPSILON, 0.f},
{0.f, 0.f, 1.f, 1.f},
};