docs.unity3d.com
    Show / Hide Table of Contents

    Struct Frustum

    Frustum class.

    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    public struct Frustum

    Fields

    corners

    Frustum corner points.

    Declaration
    public Vector3[] corners
    Field Value
    Type Description
    Vector3[]

    planes

    Frustum planes. In order: left, right, top, bottom, near, far.

    Declaration
    public Plane[] planes
    Field Value
    Type Description
    Plane[]

    Methods

    Create(ref Frustum, Matrix4x4, Vector3, Vector3, Single, Single)

    Creates a frustum. Note: when using a camera-relative matrix, the frustum will be camera-relative.

    Declaration
    public static void Create(ref Frustum frustum, Matrix4x4 viewProjMatrix, Vector3 viewPos, Vector3 viewDir, float nearClipPlane, float farClipPlane)
    Parameters
    Type Name Description
    Frustum frustum

    Inout frustum.

    Matrix4x4 viewProjMatrix

    View projection matrix from which to build the frustum.

    Vector3 viewPos

    View position of the frustum.

    Vector3 viewDir

    Direction of the frustum.

    Single nearClipPlane

    Near clip plane of the frustum.

    Single farClipPlane

    Far clip plane of the frustum.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023