Skip to content

shz_mat4x4_blend

Markdown
SHZ_INLINE void shz_mat4x4_blend(shz_mat4x4_t* dst, const shz_mat4x4_t* matrix, float weights) SHZ_NOEXCEPT;

Adds and accumulates a scaled 4x4 matrix into the given matrix.

NameTypeDescription
dstshz_mat4x4_t *
matrixconst shz_mat4x4_t *
weightsfloat

Nothing (void).

Each component of joint_matrix will be multiplied by weight, with the result being added to the existing value of that component in dst.

This is useful for accumulating weighted joint matrices onto an initially zeroed-out matrix.

  • This routine clobbers XMTRX.
  • shz_mat4x4_t and shz_mat2x2_t arguments must be 8-byte aligned. Unaligned data goes through the float[16] parameters of the _unaligned routines.

shz_mat4x4_init_zero