summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0undefined <oscar@nelin.dk>2026-03-10 23:24:28 +0000
committer0undefined <oscar@nelin.dk>2026-03-10 23:24:28 +0000
commit88dbf8ba97f6fad19fbf73aaafb88c179b5ff05d (patch)
tree676411210400a4d4674fb964fab5f842e658d82d
parentc582841c01aeb30ec5cf7451d34ee45f8e228aa7 (diff)
Its called ModelViewProjection not ViewProjectionModel
This bug was only caught due to drawing more models and observing their odd behaviour.
-rw-r--r--src/rendering.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rendering.c b/src/rendering.c
index c4d71d8..dceacc4 100644
--- a/src/rendering.c
+++ b/src/rendering.c
@@ -636,7 +636,7 @@ void r_draw_model(void *restrict context, RenderTargets *restrict t, u32 framebu
model[3][2] = pos[2];
// modelviewprojection = p * view * model
- glm_mat4_mul(model, camera_matrix, modelviewprojection);
+ glm_mat4_mul(camera_matrix, model, modelviewprojection);
// TODO: Do this only once during initialization
gl->UniformMatrix4fv(o->mvp, 1, GL_FALSE, &modelviewprojection[0][0]);