Use the animated verts and normals in GL 1.1 if they exist
This commit is contained in:
parent
31d63d08e2
commit
ee2ab11cc5
1 changed files with 10 additions and 2 deletions
|
@ -1423,9 +1423,17 @@ void DrawMesh(Mesh mesh, Material material, Matrix transform)
|
|||
|
||||
rlEnableTexture(material.maps[MATERIAL_MAP_DIFFUSE].texture.id);
|
||||
|
||||
rlEnableStatePointer(GL_VERTEX_ARRAY, mesh.vertices);
|
||||
if (mesh.animVertices)
|
||||
rlEnableStatePointer(GL_VERTEX_ARRAY, mesh.animVertices);
|
||||
else
|
||||
rlEnableStatePointer(GL_VERTEX_ARRAY, mesh.vertices);
|
||||
|
||||
rlEnableStatePointer(GL_TEXTURE_COORD_ARRAY, mesh.texcoords);
|
||||
rlEnableStatePointer(GL_NORMAL_ARRAY, mesh.normals);
|
||||
if (mesh.normals)
|
||||
rlEnableStatePointer(GL_VERTEX_ARRAY, mesh.animNormalss);
|
||||
else
|
||||
rlEnableStatePointer(GL_NORMAL_ARRAY, mesh.normals);
|
||||
|
||||
rlEnableStatePointer(GL_COLOR_ARRAY, mesh.colors);
|
||||
|
||||
rlPushMatrix();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue