summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-17 17:07:23 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-17 17:07:23 +1100
commitb40b091a2f1f51248364862a0507c0a0384cb0dd (patch)
tree1c67dd1c5fcf059360200906bd4d893de0c23919
parente4a74976574a7d89906cfbf605ef095ca90dba61 (diff)
fix obj example
-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);
}