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. |