• Efficiently applies scaling to a 4x4 matrix.

    Parameters

    • xyz: Vec3

      The scaling vector (x, y, z).

    • m: Mat4 = ...

      The matrix to apply the scaling to. Defaults to the identity matrix if not provided.

    Returns Mat4

    The matrix with the scaling applied.