Skip to main content

mat3_to_mat4

Function mat3_to_mat4 

Source
pub(crate) fn mat3_to_mat4(m: Mat3) -> Mat4
Expand description

Lift a 2-D affine Mat3 into a 4-D homogeneous Mat4 for the WGPU-side vertex shaders that consume mat4s.

Lives here instead of being copy-pasted in every pipeline.