summaryrefslogtreecommitdiff
path: root/examples/obj_loading/ex_obj_loading.c
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-21 11:52:42 +1000
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-21 11:52:42 +1000
commitff923749ef298346c5448e90e8338bfc28e4f66b (patch)
tree4ce844e04984e1b55647886bd05779aa7dc8ea18 /examples/obj_loading/ex_obj_loading.c
parent374567ae4b18627f9ab410e7e5a38b1e7aeb04c5 (diff)
parentd8b564ffd1257152094966784a8db3d1396a8879 (diff)
Merge branch 'master' into cel-67-load-animation-data-from-gltf
Diffstat (limited to 'examples/obj_loading/ex_obj_loading.c')
-rw-r--r--examples/obj_loading/ex_obj_loading.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/obj_loading/ex_obj_loading.c b/examples/obj_loading/ex_obj_loading.c
index 6e63938..e225cb2 100644
--- a/examples/obj_loading/ex_obj_loading.c
+++ b/examples/obj_loading/ex_obj_loading.c
@@ -62,7 +62,8 @@ int main() {
// Draw the backpack
transform model_tf = transform_create(vec3(0.0, -0.4, 0.0), quat_ident(),
1.8); // make the backpack a bit bigger
- draw_model(&core->renderer, &cam, backpack, model_tf, &our_scene);
+ mat4 model_matrix = transform_to_mat(&model_tf);
+ draw_model(&core->renderer, &cam, backpack, &model_matrix, &our_scene);
render_frame_end(&core->renderer);
}