From 361d878b4c70bcae72164e4f069f151d902e872d Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 24 Jul 2018 18:52:56 +0200 Subject: [PATCH] Updated animations support --- src/rlgl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rlgl.h b/src/rlgl.h index b98b4d7f1..871329913 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -198,7 +198,14 @@ typedef unsigned char byte; float *tangents; // vertex tangents (XYZW - 4 components per vertex) (shader-location = 4) unsigned char *colors; // vertex colors (RGBA - 4 components per vertex) (shader-location = 3) unsigned short *indices;// vertex indices (in case vertex data comes indexed) + + // Animation vertex data + float *baseVertices; // Vertex base position (required to apply bones transformations) + float *baseNormals; // Vertex base normals (required to apply bones transformations) + float *weightBias; // Vertex weight bias + int *weightId; // Vertex weight id + // OpenGL identifiers unsigned int vaoId; // OpenGL Vertex Array Object id unsigned int vboId[7]; // OpenGL Vertex Buffer Objects id (7 types of vertex data) } Mesh;