REVIEWED: UpdateModelAnimationBoneMatrices() comments

This commit is contained in:
Ray
2024-10-24 12:46:02 +02:00
parent 5065b85d33
commit 6ff0b03629
3 changed files with 11 additions and 7 deletions

View File

@@ -2364,6 +2364,9 @@ void UpdateModelAnimation(Model model, ModelAnimation anim, int frame)
}
}
// Update model animated bones transform matrices for a given frame
// NOTE: Updated data is not uploaded to GPU but kept at model.meshes[i].boneMatrices[boneId],
// to be uploaded to shader at drawing, in case GPU skinning is enabled
void UpdateModelAnimationBoneMatrices(Model model, ModelAnimation anim, int frame)
{
if ((anim.frameCount > 0) && (anim.bones != NULL) && (anim.framePoses != NULL))