summaryrefslogtreecommitdiff
path: root/src/maths/maths.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-17 15:39:40 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-17 15:39:40 +1100
commitcbcd40391c445afb836217a64e0bd96bc54cb805 (patch)
treee8c3656283af96394432b61f07fb1284fec486e2 /src/maths/maths.h
parent31359e468c4f1d844f19862f63ed911b66b98068 (diff)
rendering using transforms
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 390b611..6834f69 100644
--- a/src/maths/maths.h
+++ b/src/maths/maths.h
@@ -203,7 +203,7 @@ static inline mat4 mat4_look_at(vec3 position, vec3 target, vec3 up) {
.is_dirty = false })
static transform transform_create(vec3 pos, quat rot, f32 scale) {
- return (transform){ .position = pos, .rotation = rot, .scale = scale, .is_dirty = false };
+ return (transform){ .position = pos, .rotation = rot, .scale = scale, .is_dirty = true };
}
static inline mat4 transform_to_mat(transform *tf) {