function scale(m, x, y, z, out) {
  out = out ?? create();
  out[0] = m[0] * x;
  out[1] = m[1] * x;
  out[2] = m[2] * x;
  out[3] = m[3] * x;
  out[4] = m[4] * y;
  out[5] = m[5] * y;
  out[6] = m[6] * y;
  out[7] = m[7] * y;
  out[8] = m[8] * z;
  out[9] = m[9] * z;
  out[10] = m[10] * z;
  out[11] = m[11] * z;
  out[12] = m[12];
  out[13] = m[13];
  out[14] = m[14];
  out[15] = m[15];
  return out;
}
Scales the mat4 by the dimensions in the given vec3

@param {Mat4} m The matrix to scale.
@param {number} x How much to scale in the x direction.
@param {number} y How much to scale in the y direction.
@param {number} z How much to scale in the z direction.
@param {Mat4} [out] The matrix to write to.
@return {Mat4} out