Skip to content

Commit 23354e1

Browse files
authored
correction of comments (#4400)
The indication of locations for bone ids and bone weights did not correspond to their default values ​​in config.h
1 parent 902d3c9 commit 23354e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rmodels.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ void UploadMesh(Mesh *mesh, bool dynamic)
13621362
#ifdef RL_SUPPORT_MESH_GPU_SKINNING
13631363
if (mesh->boneIds != NULL)
13641364
{
1365-
// Enable vertex attribute: boneIds (shader-location = 6)
1365+
// Enable vertex attribute: boneIds (shader-location = 7)
13661366
mesh->vboId[RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEIDS] = rlLoadVertexBuffer(mesh->boneIds, mesh->vertexCount*4*sizeof(unsigned char), dynamic);
13671367
rlSetVertexAttribute(RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEIDS, 4, RL_UNSIGNED_BYTE, 0, 0, 0);
13681368
rlEnableVertexAttribute(RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEIDS);
@@ -1378,7 +1378,7 @@ void UploadMesh(Mesh *mesh, bool dynamic)
13781378

13791379
if (mesh->boneWeights != NULL)
13801380
{
1381-
// Enable vertex attribute: boneWeights (shader-location = 7)
1381+
// Enable vertex attribute: boneWeights (shader-location = 8)
13821382
mesh->vboId[RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEWEIGHTS] = rlLoadVertexBuffer(mesh->boneWeights, mesh->vertexCount*4*sizeof(float), dynamic);
13831383
rlSetVertexAttribute(RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEWEIGHTS, 4, RL_FLOAT, 0, 0, 0);
13841384
rlEnableVertexAttribute(RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEWEIGHTS);

0 commit comments

Comments
 (0)