#define_import_path bevy_render::maths fn affine_to_square(affine: mat3x4) -> mat4x4 { return transpose(mat4x4( affine[0], affine[1], affine[2], vec4(0.0, 0.0, 0.0, 1.0), )); } fn mat2x4_f32_to_mat3x3_unpack( a: mat2x4, b: f32, ) -> mat3x3 { return mat3x3( a[0].xyz, vec3(a[0].w, a[1].xy), vec3(a[1].zw, b), ); }