Skip to main content

evaluate_skinning_motor_palette_zero_heap

Function evaluate_skinning_motor_palette_zero_heap 

pub fn evaluate_skinning_motor_palette_zero_heap(
    bind_inv_motors: &[Motor],
    world_joint_motors: &[Motor],
    prev_skin_motors: &[Motor],
    out_gpu_palette: &mut [GpuJointMotorPair],
    out_current_skin_motors: &mut [Motor],
) -> usize
Expand description

Evaluates the GPU skinning Motor palette in a single zero-heap pass (HotZeroHeap).

Computes $M_{\text{skin}, j} = \text{normalize}(M_{\text{world}, j} \circ M_{\text{inv_bind}, j})$, enforces unit-norm and Plücker orthogonality ($R \cdot D = 0$), hemisphere-aligns prev_skin_motors against current_skin_motors for artifact-free TAA velocity vectors, and writes both out_gpu_palette and out_current_skin_motors.

Returns the number of joints evaluated (<= MAX_GPU_RIG_JOINTS).