Class MorphTargetManager
Hierarchy
- MorphTargetManager
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Creates a new MorphTargetManager
Parameters
Returns MorphTargetManager
Properties
enable Normal MorphingSearch playground for enableNormalMorphing
Gets or sets a boolean indicating if normals must be morphed
enable Tangent MorphingSearch playground for enableTangentMorphing
Gets or sets a boolean indicating if tangents must be morphed
enableUVMorphingSearch playground for enableUVMorphing
Gets or sets a boolean indicating if UV must be morphed
optimize InfluencersSearch playground for optimizeInfluencers
Gets or sets a boolean indicating if influencers must be optimized (eg. recompiling the shader if less influencers are used)
Static Enable Texture StorageSearch playground for EnableTextureStorage
Enable storing morph target data into textures when set to true (true by default)
Accessors
are Updates Frozen
-
Sets a boolean indicating that adding new target or updating an existing target will not update the underlying data buffers
Returns boolean
-
Sets a boolean indicating that adding new target or updating an existing target will not update the underlying data buffers
Parameters
-
block: boolean
Returns any
-
influences
-
Gets the list of influences (one per target)
Returns Float32Array
is Using Texture For Targets
-
Gets a boolean indicating that the targets are stored into a texture (instead of as attributes)
Returns boolean
num Influencers
-
Gets the number of influencers (ie. the number of targets with influences > 0)
Returns number
num Targets
-
Gets the number of targets stored in this manager
Returns number
supports Normals
-
Gets a boolean indicating if this manager supports morphing of normals
Returns boolean
supports Tangents
-
Gets a boolean indicating if this manager supports morphing of tangents
Returns boolean
supportsUVs
-
Gets a boolean indicating if this manager supports morphing of texture coordinates
Returns boolean
unique Id
-
Gets the unique ID of this manager
Returns number
use Texture ToStore Targets
-
Gets or sets a boolean indicating that targets should be stored as a texture instead of using vertex attributes (default is true). Please note that this option is not available if the hardware does not support it
Returns boolean
-
Gets or sets a boolean indicating that targets should be stored as a texture instead of using vertex attributes (default is true). Please note that this option is not available if the hardware does not support it
Parameters
-
value: boolean
Returns any
-
vertex Count
-
Gets the number of vertices handled by this manager
Returns number
Methods
add TargetSearch playground for addTarget
-
Add a new target to this manager
Parameters
-
target: MorphTarget
defines the target to add
Returns void
-
cloneSearch playground for clone
-
Clone the current manager
Returns MorphTargetManager
a new MorphTargetManager
disposeSearch playground for dispose
-
Release all resources
Returns void
get Active TargetSearch playground for getActiveTarget
-
Gets the active target at specified index. An active target is a target with an influence > 0
Parameters
-
index: number
defines the index to check
Returns MorphTarget
the requested target
-
get TargetSearch playground for getTarget
-
Gets the target at specified index
Parameters
-
index: number
defines the index to check
Returns MorphTarget
the requested target
-
remove TargetSearch playground for removeTarget
-
Removes a target from the manager
Parameters
-
target: MorphTarget
defines the target to remove
Returns void
-
serializeSearch playground for serialize
-
Serializes the current manager into a Serialization object
Returns any
the serialized object
synchronizeSearch playground for synchronize
-
Synchronize the targets with all the meshes using this morph target manager
Returns void
Static ParseSearch playground for Parse
-
Creates a new MorphTargetManager from serialized data
Parameters
-
serializationObject: any
defines the serialized data
-
scene: Scene
defines the hosting scene
Returns MorphTargetManager
the new MorphTargetManager
-
This class is used to deform meshes using morphing between different targets
https://doc.babylonjs.com/how_to/how_to_use_morphtargets