MorphTarget QML Type | Qt Quick 3D | Qt 6.10.3
Description: Defines the properties of a morph target.

- Qt 6.10
- Qt Quick 3D
- QML Types
- MorphTarget
- Qt Quick 3D | Commercial or GPLv3

# MorphTarget QML Type

Defines the properties of a morph target. More...

Import Statement: | `import QtQuick3D`
Inherits: | Object3D

- List of all members, including inherited members

## Properties

- attributes : enumeration
- weight : real

## Detailed Description

Each MorphTarget is a morph target for a vertex animation. The degree of morphing is controlled by changing the weight property.

     MorphTarget {
         id: morphtarget0
         attributes: MorphTarget.Position | MorphTarget.Normal
         weight: 0.5
     }

The morphing example shows how to use a morph target.

## Property Documentation

attributes : enumeration

Specifies the set of attributes of the current morph target. In order to animate vertex attributes in morphing, the mesh must contain those target attributes and the morph target must have the attributes enabled.

The attributes for a morph target are specified by OR-ing together the following values:

Constant | Description
--- | ---
`MorphTarget.Position` | animates the vertex positions
`MorphTarget.Normal` | animates the normal vectors
`MorphTarget.Tangent` | animates the tangent vectors
`MorphTarget.Binormal` | animates the binormal vectors
`MorphTarget.TexCoord0` | animates the texture coordinate 0 vectors
`MorphTarget.TexCoord1` | animates the texture coordinate 1 vectors
`MorphTarget.Color` | animates the vertex color vectors

weight : real

Specifies the weight of the current morph target. The weight is the multiplication factor used by the linear interpolation. A weight of 1 means that this target is fully applied. A weight of 0 means that it has no influence.