remove the 3ds ifdefs out of the core mat lib

need to find a way to handle mtx stuff in the gfx driver or another way
This commit is contained in:
2026-09-15 07:20:00 +02:00
parent 6de3683818
commit 01d3eb771e
2 changed files with 1 additions and 27 deletions
-5
View File
@@ -85,13 +85,8 @@ PD_API Mat4 Mat4::Perspective(float fov, float aspect, float n, float f) {
Mat4 ret;
ret(0, 0) = 1.f / (aspect * _fov);
ret(1, 1) = 1.f / _fov;
#ifdef __3DS__
ret(2, 3) = f * n / (n - f);
ret(2, 2) = -(-1.f) * n / (n - f);
#else
ret(2, 2) = -(f + n) / (f - n);
ret(2, 3) = -(2.f * f * n) / (f - n);
#endif
ret(3, 2) = -1.f;
ret(3, 3) = 0.0f;
return ret;