Method IsRenderTargetProjectionMatrixFlipped
IsRenderTargetProjectionMatrixFlipped(RTHandle, RTHandle)
True if the render target's projection matrix is flipped. This happens when the pipeline is rendering to a render texture in non OpenGL platforms. If you are doing a custom Blit pass to copy camera textures (_CameraColorTexture, _CameraDepthAttachment) you need to check this flag to know if you should flip the matrix when rendering with for cmd.Draw* and reading from camera textures.
Declaration
public bool IsRenderTargetProjectionMatrixFlipped(RTHandle color, RTHandle depth = null)
Parameters
Type | Name | Description |
---|---|---|
RTHandle | color | Color render target to check whether the matrix is flipped. |
RTHandle | depth | Depth render target which is used if color is null. By default |
Returns
Type | Description |
---|---|
bool | True if the render target's projection matrix is flipped. |