Method GetGPUProjectionMatrix
GetGPUProjectionMatrix(int)
Returns the camera GPU projection matrix. This contains platform specific changes to handle y-flip and reverse z. Includes camera jitter if required by active features.
Similar to GL.GetGPUProjectionMatrix
but queries URP internal state to know if the pipeline is rendering to render texture.
For more info on platform differences regarding camera projection check: https://docs.unity3d.com/Manual/SL-PlatformDifferences.html
선언
public Matrix4x4 GetGPUProjectionMatrix(int viewIndex = 0)
파라미터
타입 | 이름 | 설명 |
---|---|---|
int | viewIndex | View index in case of stereo rendering. By default |
반환
타입 | 설명 |
---|---|
Matrix4x4 |