docs.unity3d.com
    Show / Hide Table of Contents

    Struct HDCamera.ViewConstants

    Structure containing all shader view related constants for this camera.

    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    public struct ViewConstants

    Fields

    invProjMatrix

    Inverse Projection matrix.

    Declaration
    public Matrix4x4 invProjMatrix
    Field Value
    Type Description
    Matrix4x4

    invViewMatrix

    Inverse View matrix.

    Declaration
    public Matrix4x4 invViewMatrix
    Field Value
    Type Description
    Matrix4x4

    invViewProjMatrix

    Inverse View Projection matrix.

    Declaration
    public Matrix4x4 invViewProjMatrix
    Field Value
    Type Description
    Matrix4x4

    nonJitteredViewProjMatrix

    Non-jittered View Projection matrix.

    Declaration
    public Matrix4x4 nonJitteredViewProjMatrix
    Field Value
    Type Description
    Matrix4x4

    pixelCoordToViewDirWS

    Utility matrix (used by sky) to map screen position to WS view direction.

    Declaration
    public Matrix4x4 pixelCoordToViewDirWS
    Field Value
    Type Description
    Matrix4x4

    prevInvViewProjMatrix

    Non-jittered Inverse View Projection matrix from previous frame.

    Declaration
    public Matrix4x4 prevInvViewProjMatrix
    Field Value
    Type Description
    Matrix4x4

    prevViewMatrix

    Previous view matrix from previous frame.

    Declaration
    public Matrix4x4 prevViewMatrix
    Field Value
    Type Description
    Matrix4x4

    prevViewProjMatrix

    Non-jittered View Projection matrix from previous frame.

    Declaration
    public Matrix4x4 prevViewProjMatrix
    Field Value
    Type Description
    Matrix4x4

    prevViewProjMatrixNoCameraTrans

    Non-jittered View Projection matrix from previous frame without translation.

    Declaration
    public Matrix4x4 prevViewProjMatrixNoCameraTrans
    Field Value
    Type Description
    Matrix4x4

    prevWorldSpaceCameraPos

    World Space camera position from previous frame.

    Declaration
    public Vector3 prevWorldSpaceCameraPos
    Field Value
    Type Description
    Vector3

    projMatrix

    Projection matrix.

    Declaration
    public Matrix4x4 projMatrix
    Field Value
    Type Description
    Matrix4x4

    viewMatrix

    View matrix.

    Declaration
    public Matrix4x4 viewMatrix
    Field Value
    Type Description
    Matrix4x4

    viewProjMatrix

    View Projection matrix.

    Declaration
    public Matrix4x4 viewProjMatrix
    Field Value
    Type Description
    Matrix4x4

    worldSpaceCameraPos

    World Space camera position.

    Declaration
    public Vector3 worldSpaceCameraPos
    Field Value
    Type Description
    Vector3

    worldSpaceCameraPosViewOffset

    Offset from the main view position for stereo view constants.

    Declaration
    public Vector3 worldSpaceCameraPosViewOffset
    Field Value
    Type Description
    Vector3
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023