Define a SkinDefinition used to handle skin animations.

interface SkinDefinition {
    parentNode: Object3D;
    joints: Object3D[];
    inverseBindMatrices: Float32Array;
    jointMatrix: Mat4;
    normalMatrix: Mat4;
    parentInverseWorldMatrix: Mat4;
    binding: BufferBinding;
}

Properties

parentNode: Object3D

The parent Object3D used to calculate joint matrices.

joints: Object3D[]

An array of joint Object3D.

inverseBindMatrices: Float32Array

A Float32Array containing all the skin inverse bind matrices.

jointMatrix: Mat4

A Mat4 that will handle our joint matrix.

normalMatrix: Mat4

A Mat4 that will handle our joint normal matrix.

parentInverseWorldMatrix: Mat4

A Mat4 that will handle the parent Object3D inverse world matrix.

binding: BufferBinding

The storage BufferBinding used to send the matrices to the shaders.