Function createModelMat

  • This function creates a model matrix of the mat4 type.

    Parameters

    • translation: vec3 = ...

      Translation along x (tx), y (ty), and z (tz) directions, which can be specified by [tx, ty, tz], defaulting to [0, 0, 0]

    • rotation: vec3 = ...

      Rotation along x (rx), y (ry), and z (rz) axes, which can be specified by [rx, ry, rz], defaulting to [0, 0, 0]

    • scale: vec3 = ...

      Scaling along x (sx), y (sy), and z (sz) directions, which can be specified by [sx, sy, sz], defaulting to [1, 1, 1]

    Returns mat4

Generated using TypeDoc