SkinningNode constructor
SkinningNode(
- dynamic skinnedMesh
Implementation
SkinningNode(skinnedMesh) : super('void') {
this.skinnedMesh = skinnedMesh;
this.updateType = NodeUpdateType.Object;
//
this.skinIndexNode = new AttributeNode('skinIndex', 'uvec4');
this.skinWeightNode = new AttributeNode('skinWeight', 'vec4');
this.bindMatrixNode = new Matrix4Node(skinnedMesh.bindMatrix);
this.bindMatrixInverseNode = new Matrix4Node(skinnedMesh.bindMatrixInverse);
this.boneMatricesNode = new BufferNode(skinnedMesh.skeleton.boneMatrices,
'mat4', skinnedMesh.skeleton.bones.length);
}