Skip to main content

decal_model_matrix

Function decal_model_matrix 

Source
pub fn decal_model_matrix(
    position: [f32; 3],
    rotation_deg: [f32; 3],
    size: [f32; 3],
) -> [[f32; 4]; 4]
Expand description

Build the world-space model matrix for a decal: T(position) * R_yxz * S(size). Column-major; the inner index is the row. Matches the rotation convention used by Prop::model_matrix.