Class HDCamera
HDCamera class. This class holds all information for a given camera. Constants used for shading as well as buffers persistent from one frame to another etc.
Inherited Members
Namespace: UnityEngine .Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
public class HDCamera
Fields
Name | Description |
---|---|
camera | Camera component. |
color |
Color pyramid history buffer state. |
current |
Store current algorithm which help to know if we trigger to reset history SSR Buffers. |
frustum | Camera frustum. |
main |
View constants. |
materials |
Flag that tracks if one of the objects that is included into the RTAS had its material changed. |
ray |
Ray tracing acceleration structure that is used in case the user specified the build mode as manual for the RTAS. |
screen |
Screen resolution information. Width, height, inverse width, inverse height. |
taa |
TAA jitter information. |
time | Current time for this camera. |
transforms |
Flag that tracks if one of the objects that is included into the RTAS had its transform changed. |
volumetric |
Volumetric history buffer state. |
Properties
Name | Description |
---|---|
actual |
Height actually used for rendering after dynamic resolution and XR is applied. |
actual |
Width actually used for rendering after dynamic resolution and XR is applied. |
frame |
Frame settings for this camera. |
history |
RTHandle properties for the camera history buffers. |
msaa |
Returns true if MSAA is enabled for this camera (equivalent to msaaSamples != MSAASamples.None). |
msaa |
Number of MSAA samples used for this frame. |
name | Camera name. |
post |
Screen resolution information for post processes passes. Width, height, inverse width, inverse height. |
volume |
Volume stack used for this camera. |
Methods
Name | Description |
---|---|
Alloc |
Allocates a history RTHandle with the unique identifier id. |
Get |
Returns the id RTHandle of the current frame. |
Get |
Get the existing HDCamera for the provided camera or create a new if it does not exist yet. |
Get |
Returns the id RTHandle from the previous frame. |
Reset() | Reset the camera persistent informations. This needs to be used when doing camera cuts for example in order to avoid information from previous unrelated frames to be used. |