diff --git a/source/maths/mtx_diagonal.c b/source/maths/mtx_diagonal.c index 9b49899..9c94261 100644 --- a/source/maths/mtx_diagonal.c +++ b/source/maths/mtx_diagonal.c @@ -2,9 +2,9 @@ void Mtx_Diagonal(C3D_Mtx* out, float x, float y, float z, float w) { - Mtx_Identity(out); - FVec4_Scale(out->r[0], x); - FVec4_Scale(out->r[1], y); - FVec4_Scale(out->r[2], z); - FVec4_Scale(out->r[3], w); + Mtx_Zeros(out); + out->r[0].x = x; + out->r[1].y = y; + out->r[2].z = z; + out->r[3].w = w; }