Module skinning

Source
Expand description

Four-influence linear blend skinning for retained low-poly meshes. Immutable geometry/weights upload once; only bounded pose palettes change each frame.

Structs§

SkinPalette
Validated position + inverse-transpose normal palettes. Fixed storage avoids per-frame allocation; set() is transactional. Singular/non-affine transforms are rejected rather than sending undefined normals to the GPU.
SkinWeights
SkinnedMesh

Constants§

MAX_FRAME_SKIN_JOINTS
MAX_SKIN_JOINTS
Fits minimum WebGL2 vertex-uniform limits, including normal palettes and existing material/lighting uniforms. Large rigs must be split at authoring.
MAX_SKIN_VERTICES