From 540bdfd0cbe4a95b49281cec4d3ed207070a3b5b Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 21 Apr 2024 11:46:28 +1000 Subject: fix draw_model call --- examples/gltf_loading/ex_gltf_loading.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/gltf_loading/ex_gltf_loading.c b/examples/gltf_loading/ex_gltf_loading.c index 867ddb2..98654d6 100644 --- a/examples/gltf_loading/ex_gltf_loading.c +++ b/examples/gltf_loading/ex_gltf_loading.c @@ -70,7 +70,8 @@ int main() { angle += (rot_speed * deltaTime); transform model_tf = transform_create(vec3(0.0, 0.1, -0.1), rot, 1.8); // make the backpack a bit bigger - draw_model(&core->renderer, &cam, cube, model_tf, &our_scene); + mat4 model = transform_to_mat(&model_tf); + draw_model(&core->renderer, &cam, cube, &model, &our_scene); render_frame_end(&core->renderer); } -- cgit v1.2.3-70-g09d2