Function ortho

  • creates a transformation that produces a parallel projection

    Returns

    4x4 orthographic transformation matrix

    See

    https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glOrtho.xml

    Parameters

    • left: number

      coordinate for the left vertical clipping planes.

    • right: number

      coordinate for the right vertical clipping planes.

    • bottom: number

      coordinate for the bottom horizontal clippling pane.

    • top: number

      coordinate for the top horizontal clipping pane

    • zNear: number

      Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer.

    • zFar: number

      Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer.

    Returns Mat

Generated using TypeDoc