summaryrefslogtreecommitdiff
path: root/src/maths/maths.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-12 17:02:09 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-12 17:02:09 +1000
commit59f67f04d7238453da766218a37b3c78607fb122 (patch)
treed7e5e2140700b9674e1fc6b0183cfc45dda0fed9 /src/maths/maths.h
parent26fb1fcafa552c600a70b2680c868f7355b138e4 (diff)
sphere primitives vertices working
Diffstat (limited to 'src/maths/maths.h')
-rw-r--r--src/maths/maths.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/maths/maths.h b/src/maths/maths.h
index 45d69c1..80ce04d 100644
--- a/src/maths/maths.h
+++ b/src/maths/maths.h
@@ -314,7 +314,7 @@ 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(translation, mat4_mult(rotation, scale));
+ return mat4_mult( mat4_mult(scale, rotation), translation);
}
// --- Sizing asserts