Function frustum

  • creates a perspective matrix that produces a perspective projection

    Returns

    4x4 perspective projection matrix

    See

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

    Parameters

    • left: number

      coordinates for the vertical left clipping pane

    • right: number

      coordinates for the vertical right clipping pane

    • bottom: number

      coordinates for the horizontal bottom clipping pane

    • top: number

      coodinates for the top horizontal clipping pane

    • zNear: number

      Specify the distances to the near depth clipping plane. Must be positive.

    • zFar: number

      Specify the distances to the far depth clipping planes. Must be positive.

    Returns Mat

Generated using TypeDoc