mirror of
https://github.com/encounter/aurora.git
synced 2025-12-20 18:29:21 +00:00
GXTransform: Projection matrix depth fix
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
#include "gx.hpp"
|
#include "gx.hpp"
|
||||||
|
|
||||||
|
#include <cfloat>
|
||||||
|
|
||||||
constexpr aurora::Mat4x4<float> DepthCorrect{
|
constexpr aurora::Mat4x4<float> DepthCorrect{
|
||||||
{1.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, 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},
|
{0.f, 0.f, 1.f, 1.f},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user