Struct CameraSettings.Frustum
Defines the projection matrix of the camera.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
public struct Frustum
Fields
aspect
Aspect ratio of the frustum (width/height).
Declaration
public float aspect
Field Value
| Type | Description |
|---|---|
| Single |
default
Default value.
Declaration
public static readonly CameraSettings.Frustum default
Field Value
| Type | Description |
|---|---|
| CameraSettings.Frustum |
farClipPlaneRaw
Far clip plane distance.
Value that will be stored for the far clip plane distance. IF you need the effective far clip plane distance, use farClipPlane.
Declaration
public float farClipPlaneRaw
Field Value
| Type | Description |
|---|---|
| Single |
fieldOfView
Field of view for perspective matrix (for y axis, in degree).
Declaration
public float fieldOfView
Field Value
| Type | Description |
|---|---|
| Single |
MinFarClipPlane
The far clip plane value will be at least above nearClipPlane + MinFarClipPlane
Declaration
public const float MinFarClipPlane = null
Field Value
| Type | Description |
|---|---|
| Single |
MinNearClipPlane
The near clip plane value will be above this value.
Declaration
public const float MinNearClipPlane = null
Field Value
| Type | Description |
|---|---|
| Single |
mode
Which mode will be used for the projection matrix.
Declaration
public CameraSettings.Frustum.Mode mode
Field Value
| Type | Description |
|---|---|
| CameraSettings.Frustum.Mode |
nearClipPlaneRaw
Near clip plane distance.
Value that will be stored for the near clip plane distance. IF you need the effective near clip plane distance, use nearClipPlane.
Declaration
public float nearClipPlaneRaw
Field Value
| Type | Description |
|---|---|
| Single |
projectionMatrix
Projection matrix used for UseProjectionMatrixField mode.
Declaration
public Matrix4x4 projectionMatrix
Field Value
| Type | Description |
|---|---|
| Matrix4x4 |
Properties
farClipPlane
Effective far clip plane distance.
Use this value to compute the projection matrix.
This value is valid to compute a projection matrix. If you need the raw stored value, see farClipPlaneRaw instead.
Declaration
public float farClipPlane { get; }
Property Value
| Type | Description |
|---|---|
| Single |
nearClipPlane
Effective near clip plane distance.
Use this value to compute the projection matrix.
This value is valid to compute a projection matrix. If you need the raw stored value, see nearClipPlaneRaw instead.
Declaration
public float nearClipPlane { get; }
Property Value
| Type | Description |
|---|---|
| Single |
Methods
ComputeProjectionMatrix()
Compute the projection matrix based on the mode and settings provided.
Declaration
public Matrix4x4 ComputeProjectionMatrix()
Returns
| Type | Description |
|---|---|
| Matrix4x4 | The projection matrix. |
GetUsedProjectionMatrix()
Get the projection matrix used depending on the projection mode.
Declaration
public Matrix4x4 GetUsedProjectionMatrix()
Returns
| Type | Description |
|---|---|
| Matrix4x4 | The projection matrix |
NewDefault()
Default value.
Declaration
public static CameraSettings.Frustum NewDefault()
Returns
| Type | Description |
|---|---|
| CameraSettings.Frustum | The default value. |