magic-pixels
    Preparing search index...

    Function frustum

    • creates a perspective matrix that produces a perspective projection

      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 Matrix

      4x4 perspective projection matrix (see Mat4.frustum for the Mat4 variant)