Updated source code files of skeletal animation guest article.

This commit is contained in:
Joey de Vries
2021-09-08 20:43:58 +02:00
parent 0ce49088e5
commit a051a65d80
5 changed files with 73 additions and 25 deletions

View File

@@ -1,18 +1,13 @@
#pragma once
#include <glm/glm.hpp>
#include<glm/glm.hpp>
struct BoneInfo
{
/*
For uniquely indentifying the bone and
for indexing bone transformation in shaders
*/
/*id is index in finalBoneMatrices*/
int id;
/*
map from bone name to offset matrix.
offset matrix transforms bone from bone space to local space
*/
/*offset matrix transforms vertex from model space to bone space*/
glm::mat4 offset;
};