Class
MeshInstanceUniform
View sourceCPU-side payload for a single mesh-instance uniform block.
Constructor
View source
Properties
staticreadonly MorphTargetWeightVectors : number
View sourceRaw std140 payload size for one mesh-instance block.
Default: 4
staticreadonly MorphTargetCount : number
View sourceMaximum number of morph targets supported by the packed UBO payload.
Default: ...
staticreadonly BlockSize : number
View sourceRaw std140 payload size for one mesh-instance block.
Default: ...
transform : Affine3
View sourceCurrent world transform for the instance.
skinIndex : number
View sourceBone texture row offset for the instance skin.
Default: 0
boneCount : number
View sourceNumber of bones available for the instance skin.
Default: 0
morphTargetCount : number
View sourceNumber of morph targets exposed by the mesh.
Default: 0
morphWeights : number[]
View sourcePacked morph weights for up to MeshInstanceUniform.MorphTargetCount targets.
Default: []
Methods
static from2D ( options: MeshInstance2DOptions ) : MeshInstanceUniform
View source Creates a mesh-instance payload from a 2D affine transform.
The 2D transform occupies the XY plane and the object’s z-index becomes the promoted affine’s Z translation so the existing MeshInstanceBlock can be reused by the 2D pipeline.
getData ( data: DataView<ArrayBufferLike> ) : void
View source Packs the current state into the supplied block slice.