• Sets the extents of a frustum to the world-space volume defined by view and projection matrices. Creates the frustum if it is not provided.

    Parameters

    • viewMat: Mat4

      The 4x4 view matrix.

    • projMat: Mat4

      The 4x4 projection matrix.

    • Optionalfrustum: Frustum3

      Optional frustum instance to modify. If not provided, a new frustum is created.

    Returns Frustum3

    The updated or newly created frustum.