An instance of Morph. Contains weights to assign to every MorphTarget, manages selection of active morph targets.

Constructors

Properties

morph: Morph

The morph with its targets, which is being instanced.

Methods

  • Private

    Generate fragment shader to blend a number of textures using specified weights.

    Parameters

    • numTextures: number

      Number of textures to blend.

    Returns string

    Fragment shader.

  • Gets current weight of the specified morph target.

    Parameters

    • key: string | number

      An identifier for the morph target. Either the weight index or the weight name.

    Returns number

    Weight.

  • Sets weight of the specified morph target.

    Parameters

    • key: string | number

      An identifier for the morph target. Either the weight index or the weight name.

    • weight: number

      Weight.

    Returns void