summaryrefslogtreecommitdiff
path: root/src/maths/maths.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-17 22:17:48 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-18 10:30:28 +1000
commit4b5695ce26a8f821dfac987e8e11a6ba5eeff610 (patch)
tree0cd8f80bdb0520ffcf0cd62851f72055d4ee5546 /src/maths/maths.h
parentf1cb5bece520dba63fa77e4721909ab8f0a6c26f (diff)
start working on a immediate mode drawing API
Diffstat (limited to 'src/maths/maths.h')
-rw-r--r--src/maths/maths.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/maths/maths.h b/src/maths/maths.h
index fa58088..7c0e06e 100644
--- a/src/maths/maths.h
+++ b/src/maths/maths.h
@@ -314,7 +314,8 @@ static inline mat4 transform_to_mat(transform *tf) {
mat4 scale = mat4_scale(tf->scale);
mat4 rotation = mat4_rotation(tf->rotation);
mat4 translation = mat4_translation(tf->position);
- return mat4_mult(mat4_mult(scale, rotation), translation);
+ return mat4_mult(translation, mat4_mult(rotation, scale));
+ // return mat4_mult(mat4_mult(scale, rotation), translation);
}
// --- Sizing asserts