summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-06 22:24:52 +1100
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-06 22:24:52 +1100
commitd9f9479694d8a4d74822a876516282329db5ea3d (patch)
treebd52e7fa5fea45f1483cd47d49f980732ff404d3 /examples
parent113b038b703aeef545e86700afd6dc2095015e84 (diff)
separate pipeline for skinned meshes
Diffstat (limited to 'examples')
-rw-r--r--examples/gltf_loading/ex_gltf_loading.c1
-rw-r--r--examples/skinned_animation/ex_skinned_animation.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/examples/gltf_loading/ex_gltf_loading.c b/examples/gltf_loading/ex_gltf_loading.c
index 7b69127..5d53e78 100644
--- a/examples/gltf_loading/ex_gltf_loading.c
+++ b/examples/gltf_loading/ex_gltf_loading.c
@@ -56,7 +56,6 @@ int main() {
scene our_scene = { .dir_light = dir_light, .n_point_lights = 4 };
memcpy(&our_scene.point_lights, &point_lights, sizeof(point_light[4]));
-
while (!glfwWindowShouldClose(core->renderer.window)) {
currentFrame = glfwGetTime();
deltaTime = currentFrame - lastFrame;
diff --git a/examples/skinned_animation/ex_skinned_animation.c b/examples/skinned_animation/ex_skinned_animation.c
index 9efffc6..3138256 100644
--- a/examples/skinned_animation/ex_skinned_animation.c
+++ b/examples/skinned_animation/ex_skinned_animation.c
@@ -37,7 +37,7 @@ int main() {
scene our_scene = make_default_scene();
- vec3 cam_pos = vec3_create(5, 5, 5);
+ vec3 cam_pos = vec3_create(0, 5, 8);
game_state game = {
.camera = camera_create(cam_pos, vec3_negate(cam_pos), VEC3_Y, deg_to_rad(45.0)),
.camera_euler = vec3_create(90, 0, 0),
@@ -86,7 +86,7 @@ int main() {
quat rot = quat_ident();
transform tf = transform_create(VEC3_ZERO, rot, 1.0);
- draw_model(&core->renderer, &game.camera, cube, tf, &our_scene);
+ draw_skinned_model(&core->renderer, &game.camera, cube, tf, &our_scene);
// gfx_backend_draw_frame(&core->renderer, &game.camera, model, NULL);