Fix nonuniform scale issue;

This commit is contained in:
bjorn 2017-08-26 20:09:00 -07:00
parent d6aad1faba
commit 3fed41db7f
1 changed files with 2 additions and 2 deletions

View File

@ -211,8 +211,8 @@ mat4 mat4_scale(mat4 m, float x, float y, float z) {
mat4 mat4_setTransform(mat4 m, float x, float y, float z, float sx, float sy, float sz, float angle, float ax, float ay, float az) {
mat4_identity(m);
mat4_translate(m, x, y, z);
mat4_scale(m, sx, sy, sz);
return mat4_rotate(m, angle, ax, ay, az);
mat4_rotate(m, angle, ax, ay, az);
return mat4_scale(m, sx, sy, sz);
}
mat4 mat4_orthographic(mat4 m, float left, float right, float top, float bottom, float near, float far) {