Add skinning

This commit is contained in:
2026-03-05 14:19:46 +03:00
parent d57ac17b69
commit 65cf326f25
21 changed files with 1305 additions and 117 deletions

View File

@@ -5,6 +5,8 @@
#include <stdint.h>
#include <glm/glm.hpp>
#include <glm/gtx/quaternion.hpp>
#include <glm/gtx/compatibility.hpp>
typedef uint32_t index_t;
@@ -207,6 +209,7 @@ enum ShaderUniform_t
UNIFORM_SUN_COLOR,
UNIFORM_SUN_AMBIENT,
UNIFORM_CAMERA_POS,
UNIFORM_BONE_MATRICES,
UNIFORM_MAX,
};
@@ -238,4 +241,13 @@ struct StaticMeshVertex
glm::vec2 texcoord;
};
struct SkinnedMeshVertex
{
glm::vec3 position;
glm::vec3 normal;
glm::vec2 texcoord;
glm::vec4 boneIds;
glm::vec4 weights;
};
#endif