• Sets a 4x4 matrix to represent a scaling transformation.

    Parameters

    • v: Vec3

      The scaling vector (x, y, z).

    • m: Mat4 = ...

      The matrix to store the result. Defaults to the identity matrix.

    Returns Mat4

    The matrix representing the scaling.