mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
Add model and include files for Ankit's Skeletal Animation tutorial.
This commit is contained in:
19
includes/learnopengl/animdata.h
Normal file
19
includes/learnopengl/animdata.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
struct BoneInfo
|
||||
{
|
||||
/*
|
||||
For uniquely indentifying the bone and
|
||||
for indexing bone transformation in shaders
|
||||
*/
|
||||
int id;
|
||||
/*
|
||||
map from bone name to offset matrix.
|
||||
offset matrix transforms bone from bone space to local space
|
||||
*/
|
||||
glm::mat4 offset;
|
||||
|
||||
};
|
||||
#pragma once
|
||||
Reference in New Issue
Block a user