Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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!