Implement step-wise animation locked to time series
This commit is contained in:
1 parent
4c94812b48
commit
381890892b
3 files changed
+39
-11
No files matched your search
@@ -10,6 +10,8 @@
|
||||
#define W 800
|
||||
#define H 600
|
||||
|
||||
#define DT (1'000'000 / 60) // Assume 60 Hz for now
|
||||
|
||||
static void
|
||||
key_callback(GLFWwindow *window, int key, int scancode, int action, int mods)
|
||||
{
|
||||
@@ -79,7 +81,7 @@ int main(int argc, char *argv[])
|
||||
glfwPollEvents();
|
||||
|
||||
mvp.model = mat4_mul(rot, mvp.model);
|
||||
animation_update(&anim, &model);
|
||||
animation_update(&anim, &model, DT);
|
||||
gpu_render(&gpu, &mvp, anim.bone_matrices);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user