geometry#hasSkinAttributes¶
Summary¶
geometry#hasSkinAttributes checks whether both primary skinning attributes are available from CPU arrays or attached Wasm views. Use it to inspect a geometry before it has been uploaded to the GPU.
Syntax¶
readonly Geometry.hasSkinAttributes: boolean
readonly Geometry.hasSkin8Attributes: boolean
const hasPrimarySkinning = geometry.hasSkinAttributes;
Returns¶
boolean - true when joints and weights are both available. The companion hasSkin8Attributes also requires the second set of joints and weights.
Notes¶
These checks describe the geometry's source attributes. Use isSkinned and isSkinned8 to check for the corresponding uploaded buffers. A mesh also needs a skin instance to render with skinning.