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