summaryrefslogtreecommitdiff
path: root/examples/obj_loading
diff options
context:
space:
mode:
authorJoshua Rowe <17525998+omnisci3nce@users.noreply.github.com>2024-04-21 11:48:06 +1000
committerGitHub <noreply@github.com>2024-04-21 11:48:06 +1000
commitd8b564ffd1257152094966784a8db3d1396a8879 (patch)
treeadbbda6eec38d0cd6f35f29e422debe09b807461 /examples/obj_loading
parent45f035c2174a018444a4e495ec78b4806900d903 (diff)
parent540bdfd0cbe4a95b49281cec4d3ed207070a3b5b (diff)
Merge pull request #10 from omnisci3nce/cel-41-port-over-a-basic-3d-scene-example
Cel 41 port over a basic 3d scene example
Diffstat (limited to 'examples/obj_loading')
-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);
}