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