diff options
| author | Ray <[email protected]> | 2018-07-24 18:52:56 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-07-24 18:52:56 +0200 |
| commit | 361d878b4c70bcae72164e4f069f151d902e872d (patch) | |
| tree | 8b93cb9d2bcb3899a301310c6fe215fedaae1cb8 | |
| parent | 198a02352764a78eb0fc3b94c3c8418d2d0c1432 (diff) | |
| download | raylib-361d878b4c70bcae72164e4f069f151d902e872d.tar.gz raylib-361d878b4c70bcae72164e4f069f151d902e872d.zip | |
Updated animations support
| -rw-r--r-- | src/rlgl.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |
