fix euler matrix

This commit is contained in:
Recep Aslantas
2016-10-23 23:27:57 +03:00
parent a6254cca47
commit 0ff0579456

View File

@@ -38,6 +38,9 @@ glm_euler(float yaw,
dest[0][3] = 0.0f;
dest[1][3] = 0.0f;
dest[2][3] = 0.0f;
dest[3][0] = 0.0f;
dest[3][1] = 0.0f;
dest[3][2] = 0.0f;
dest[3][3] = 1.0f;
}
@@ -69,6 +72,9 @@ glm_euler_zxy(float yaw,
dest[0][3] = 0.0f;
dest[1][3] = 0.0f;
dest[2][3] = 0.0f;
dest[3][0] = 0.0f;
dest[3][1] = 0.0f;
dest[3][2] = 0.0f;
dest[3][3] = 1.0f;
}