docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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 depth is set to null.

    Returns
    Type Description
    bool

    True if the render target's projection matrix is flipped.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)