Vertex Viewer SDK
    Preparing search index...

    Function makePerspective

    • Creates a perspective projection matrix.

      Related to: gluPerspective. The viewing volume is frustum-shaped amd defined by the four parameters. The fovy and aspect ratio are used to compute the positions of the left, right, top, and bottom sides of the viewing volume in the zNear plane. The fovy is the y field-of-view, the angle made by the top and bottom sides of frustum if they were to intersect. The aspect ratio is the width of the frustum divided by its height. Note that the resulting volume is both vertically and horizontally symmetrical around the center of the near plane.

      Parameters

      • near: number

        The near Z value.

      • far: number

        The far Z value.

      • fovY: number

        The field of view.

      • aspect: number

        The aspect ratio.

      Returns Matrix4.Matrix4

      A matrix.