A bind of VRMExpression influences to morph targets.

Implements

Constructors

  • Parameters

    • __namedParameters: {
          index: number;
          primitives: Mesh<
              BufferGeometry<NormalBufferAttributes>,
              Material | Material[],
              Object3DEventMap,
          >[];
          weight: number;
      }
      • index: number

        The index of the morph target in the mesh.

      • primitives: Mesh<
            BufferGeometry<NormalBufferAttributes>,
            Material | Material[],
            Object3DEventMap,
        >[]

        The mesh primitives that attached to target mesh.

      • weight: number

        The weight value of target morph target. Ranging in [0.0 - 1.0].

    Returns VRMExpressionMorphTargetBind

Properties

index: number

The index of the morph target in the mesh.

primitives: Mesh<
    BufferGeometry<NormalBufferAttributes>,
    Material | Material[],
    Object3DEventMap,
>[]

The mesh primitives that attached to target mesh.

weight: number

The weight value of target morph target. Ranging in [0.0 - 1.0].

Methods

  • Apply a weight to this bind. Applied weights will be accumulated until clearAppliedWeight is called.

    Parameters

    • weight: number

    Returns void

  • Clear previously applied weights.

    Returns void