Struct CameraSettings.Frustum | High Definition RP | 6.7.1-preview
docs.unity.cn
    Show / Hide Table of Contents

    Struct CameraSettings.Frustum

    Defines the projection matrix of the camera.

    Namespace: UnityEngine.Experimental.Rendering.HDPipeline
    Syntax
    [Serializable]
    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

    farClipPlane

    Far clip plane distance.

    Declaration
    public float farClipPlane
    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

    mode

    Which mode will be used for the projection matrix.

    Declaration
    public CameraSettings.Frustum.Mode mode
    Field Value
    Type Description
    CameraSettings.Frustum.Mode

    nearClipPlane

    Near clip plane distance.

    Declaration
    public float nearClipPlane
    Field Value
    Type Description
    Single

    projectionMatrix

    Projection matrix used for UseProjectionMatrixField mode.

    Declaration
    public Matrix4x4 projectionMatrix
    Field Value
    Type Description
    Matrix4x4

    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()

    Declaration
    public Matrix4x4 GetUsedProjectionMatrix()
    Returns
    Type Description
    Matrix4x4
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX