Search Unity

Question RenderTarget is always black in FrameDebugger (Custom SRP)

Discussion in 'General Graphics' started by equalsequals, Jul 22, 2021.

  1. equalsequals

    equalsequals

    Joined:
    Sep 27, 2010
    Posts:
    154
    I am trying to debug why in our custom SRP, our Color RenderTarget seems to only show the Depth output and not the Color, regardless of which is selected in the FrameDebugger. For context, this RenderTarget would be the equivalent of URP's _CameraColorTexture.



    When going further down the frame to the point where we are Blitting to the backbuffer, everything looks correct again:



    Shadow Passes seem to be working correctly as well.

    I'm unsure where to begin debugging this, though I suspect it may be something about how the RenderTarget is created. Generally speaking, there isn't anything special about the erroneous target vs. ones that work correctly.

    Any assistance would be appreciated!