diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-07 13:50:40 +1000 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-07 13:50:40 +1000 |
commit | 42924fe7b32e93bf55ce034467ceb52e0436c303 (patch) | |
tree | fbdf14de2bab718cadb6492d3774d33a0f50ff2f /src/animation.h | |
parent | d9f9479694d8a4d74822a876516282329db5ea3d (diff) |
visualising bone indices
Diffstat (limited to 'src/animation.h')
-rw-r--r-- | src/animation.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/animation.h b/src/animation.h index 18d3ba9..9d5d03b 100644 --- a/src/animation.h +++ b/src/animation.h @@ -31,6 +31,7 @@ typedef struct keyframes { typedef struct joint { char* name; // optional transform transform_components; + mat4 inverse_bind_matrix; mat4 local_transform; } joint; @@ -61,4 +62,11 @@ typedef struct animation_clip { animation_sampler* weights; } animation_clip; +typedef struct skinned_animation { + mat4* joint_matrices; + size_t n_joints; +} skinned_animation; + +// void animation_update_joint_matrices(animation_clip* ) + void animation_play(animation_clip* clip);
\ No newline at end of file |