/// <summary>
/// Gets a copy of the current skinning bone transform matrices.
/// </summary>
public Matrix4x4[] GetBoneTransforms(int count)
{
if (count <= 0 || count > MaxBones)
{
throw new ArgumentOutOfRangeException("count");
}
Matrix4x4[] bones = bonesParam.GetValueMatrixArray(count);
// Convert matrices from 43 to 44 format.
for (int i = 0; i < bones.Length; i++)
{
bones[i].M44 = 1;
}
return(bones);
}