@lakuna/umath
    Preparing search index...

    Function orthoGpu

    • Generate an orthogonal projection matrix with the given bounds such that the near and far clip planes correspond to a normalized device coordinate Z range of [0, 1] (WebGPU/Vulkan/DirectX/Metal).

      Type Parameters

      Parameters

      • left: number

        The left bound of the frustum.

      • right: number

        The right bound of the frustum.

      • bottom: number

        The bottom bound of the frustum.

      • top: number

        The top bound of the frustum.

      • near: number

        The near bound of the frustum.

      • far: number

        The far bound of the frustum.

      • out: T

        The matrix to store the result in.

      Returns T

      The frustum matrix.