Hi there,
I’m trying to render a Camera to a RenderTexture on top of some already existing content. However when I set the clear flags to DontClear, set the camera’s RenderTexture and run Camera.Render(), nothing shows up.
If I just set the Camera’s RenderTexture and leave it to run, it writes to the RenderTexture properly, however when I then try and Graphics.Blit that to my other RenderTexture, it fills it with black first, despite the Camera having been set to DontClear.
For brevity’s sake:
- Is there an issue with rendering a Canvas using Camera.Render()?
- If I want to Graphics.Blit just semi-transparent white shapes with no background to a texture, does anyone have a suggestion of what Shader I should use? I tried Unlit/Transparent which didn’t seem to work.
Any help appreciated!