Struct HDProbe.RenderData
Store the settings computed during a rendering
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[Serializable]
public struct RenderData
Constructors
RenderData(Matrix4x4, Matrix4x4, Vector3, Quaternion, Single, Single)
Instantiate a new RenderData from specified inputs.
Declaration
public RenderData(Matrix4x4 worldToCameraRHS, Matrix4x4 projectionMatrix, Vector3 capturePosition, Quaternion captureRotation, float fov, float aspect)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | worldToCameraRHS | The world to camera matrix (Right Hand) |
Matrix4x4 | projectionMatrix | The projection matrix. |
Vector3 | capturePosition | The capture position. |
Quaternion | captureRotation | The capture rotation. |
Single | fov | The field of view. |
Single | aspect | The aspect ratio. |
RenderData(CameraSettings, CameraPositionSettings)
Instantiate a new RenderData from camera and position settings.
Declaration
public RenderData(CameraSettings camera, CameraPositionSettings position)
Parameters
Type | Name | Description |
---|---|---|
CameraSettings | camera | The camera settings used. |
CameraPositionSettings | position | The position settings used. |
Properties
aspect
The aspect ratio.
Declaration
public float aspect { get; }
Property Value
Type | Description |
---|---|
Single |
capturePosition
The capture position.
Declaration
public Vector3 capturePosition { get; }
Property Value
Type | Description |
---|---|
Vector3 |
captureRotation
The capture rotation.
Declaration
public Quaternion captureRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
fieldOfView
The field of view.
Declaration
public float fieldOfView { get; }
Property Value
Type | Description |
---|---|
Single |
projectionMatrix
Projection matrix.
Declaration
public Matrix4x4 projectionMatrix { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
worldToCameraRHS
World to camera matrix (Right Hand).
Declaration
public Matrix4x4 worldToCameraRHS { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |