View source
class SkinnedSubGeometry
package away3d.core.base
extends CompactSubGeometry › SubGeometryBase
Available on all platforms
SkinnedSubGeometry provides a SubGeometry extension that contains data needed to skin vertices. In particular, it provides joint indices and weights. Important! Joint indices need to be pre-multiplied by 3, since they index the matrix array (and each matrix has 3 float4 elements)
Constructor
new(jointsPerVertex:Int)
Creates a new SkinnedSubGeometry object.
Parameters:
jointsPerVertex | The amount of joints that can be assigned per vertex. |
|---|
Variables
Methods
activateJointIndexBuffer(index:Int, stage3DProxy:Stage3DProxy):Void
Assigns the attribute stream for joint indices
Parameters:
index | The attribute stream index for the vertex shader |
|---|---|
stage3DProxy | The Stage3DProxy to assign the stream to |
activateJointWeightsBuffer(index:Int, stage3DProxy:Stage3DProxy):Void
Assigns the attribute stream for joint weights
Parameters:
index | The attribute stream index for the vertex shader |
|---|---|
stage3DProxy | The Stage3DProxy to assign the stream to |