Add skinning
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user