docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Frustum

    Frustum class.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
    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, float, float)

    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.

    float nearClipPlane

    Near clip plane of the frustum.

    float farClipPlane

    Far clip plane of the frustum.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)