Example #1
0
        public override void UpdateGeometryTransform(Transforms.IGeometryTransform skinnedTransform, ArmatureInstance armature)
        {
            var skinxform = (Transforms.SkinnedTransform)skinnedTransform;

            skinxform.Update(_JointsNodeIndices.Length, idx => _BindMatrices[idx], idx => armature.LogicalNodes[_JointsNodeIndices[idx]].ModelMatrix);
            skinxform.Update(armature.LogicalNodes[_MorphNodeIndex].MorphWeights, false);
        }