Implement bone matrix computation
This commit is contained in:
1 parent
e81061ad22
commit
998d5e88e1
6 files changed
+132
No files matched your search
@@ -1,3 +1,4 @@
|
||||
#include "animation.h"
|
||||
#include "gpu.h"
|
||||
#include "model_format_glb.h"
|
||||
|
||||
@@ -71,6 +72,10 @@ int main(int argc, char *argv[])
|
||||
gpu_ctx_t gpu;
|
||||
gpu_init(&gpu, &gpu_config, model);
|
||||
|
||||
// Initialise animation
|
||||
animation_state_t anim = animation_init(&model);
|
||||
animation_update(anim, &model);
|
||||
|
||||
const vec3_t cam = { 0, 4, -4 };
|
||||
const vec3_t tgt = { 0, 0.5, 0 };
|
||||
mvp_t mvp = {
|
||||
@@ -107,6 +112,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
// Clean up
|
||||
animation_cleanup(&anim);
|
||||
gpu_cleanup(&gpu);
|
||||
model_cleanup(&model);
|
||||
glfwDestroyWindow(window);
|
||||
|
||||
Reference in new issue
Block a user