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.
상속된 멤버
네임스페이스: UnityEngine.Rendering.HighDefinition
어셈블리: solution.dll
구문
public class HDCamera
필드
이름 | 설명 |
---|---|
camera | Camera component. |
colorPyramidHistoryIsValid | Color pyramid history buffer state. |
currentSSRAlgorithm | Store current algorithm which help to know if we trigger to reset history SSR Buffers. |
frustum | Camera frustum. |
mainViewConstants | View constants. |
screenSize | Screen resolution information. Width, height, inverse width, inverse height. |
taaJitter | TAA jitter information. |
time | Current time for this camera. |
volumetricHistoryIsValid | Volumetric history buffer state. |
프로퍼티
이름 | 설명 |
---|---|
actualHeight | Height actually used for rendering after dynamic resolution and XR is applied. |
actualWidth | Width actually used for rendering after dynamic resolution and XR is applied. |
frameSettings | Frame settings for this camera. |
historyRTHandleProperties | RTHandle properties for the camera history buffers. |
msaaSamples | Number of MSAA samples used for this frame. |
volumeStack | Volume stack used for this camera. |
메서드
이름 | 설명 |
---|---|
AllocHistoryFrameRT(int, Func<string, int, RTHandleSystem, RTHandle>, int) | Allocates a history RTHandle with the unique identifier id. |
GetCurrentFrameRT(int) | Returns the id RTHandle of the current frame. |
GetOrCreate(Camera, int) | Get the existing HDCamera for the provided camera or create a new if it does not exist yet. |
GetPreviousFrameRT(int) | 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. |