fix projection

This commit is contained in:
Luca Conte 2025-04-23 17:20:35 +02:00
parent cced3c5c83
commit 6ccfb7e818
1 changed files with 1 additions and 1 deletions

View File

@ -196,6 +196,7 @@ void mat4BuildProjection(mat4 out, GLfloat r, GLfloat l, GLfloat t, GLfloat b, G
out[11] = -1.0f / n; out[11] = -1.0f / n;
out[14] = - 2.0f * f / (f - n); out[14] = - 2.0f * f / (f - n);
out[15] = 0.0f;
} }
/** /**
@ -458,7 +459,6 @@ void mat3Minor(mat3 out, mat3 in) {
result[4] = in[0] * in[8] - in[2] * in[6]; result[4] = in[0] * in[8] - in[2] * in[6];
result[5] = in[0] * in[7] - in[1] * in[6]; result[5] = in[0] * in[7] - in[1] * in[6];
result[6] = in[1] * in[5] - in[2] * in[4]; result[6] = in[1] * in[5] - in[2] * in[4];
result[7] = in[0] * in[5] - in[2] * in[3]; result[7] = in[0] * in[5] - in[2] * in[3];
result[8] = in[0] * in[4] - in[1] * in[3]; result[8] = in[0] * in[4] - in[1] * in[3];