FUUUUUUUU

This commit is contained in:
Thompson Lee 2016-09-11 17:18:59 -04:00
parent 1a76a7adf1
commit e9f7b4c64e

View File

@ -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;
}