diff options
| author | las3rlars <[email protected]> | 2019-12-29 12:17:36 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-12-29 12:17:36 +0100 |
| commit | f8bd56b07f6407dd56aba105f9e51bc0234c6512 (patch) | |
| tree | d51e763790de16bc71a724c4acc6ee1613137c9d | |
| parent | 9fbf5c8ca280e3ef7e5252ee6c50f5fb88c7eec8 (diff) | |
| download | raylib-f8bd56b07f6407dd56aba105f9e51bc0234c6512.tar.gz raylib-f8bd56b07f6407dd56aba105f9e51bc0234c6512.zip | |
Normals was not correctly updated when using animated meshes (#1052)
* Normal vbo not correctly updated
| -rw-r--r-- | src/models.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.c b/src/models.c index ee163efa..75248942 100644 --- a/src/models.c +++ b/src/models.c @@ -1164,7 +1164,7 @@ void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) // Upload new vertex data to GPU for model drawing rlUpdateBuffer(model.meshes[m].vboId[0], model.meshes[m].animVertices, model.meshes[m].vertexCount*3*sizeof(float)); // Update vertex position - rlUpdateBuffer(model.meshes[m].vboId[2], model.meshes[m].animVertices, model.meshes[m].vertexCount*3*sizeof(float)); // Update vertex normals + rlUpdateBuffer(model.meshes[m].vboId[2], model.meshes[m].animNormals, model.meshes[m].vertexCount*3*sizeof(float)); // Update vertex normals } } } |
