I’m trying to grab the current screen and write it to a render texture. (I know there is the Opaque Texture available by default but I need something that includes transparent objects as well)
here is the code for the render feature:
I have it executing after rendering transparents - and then I render some objects using the texture (this is for distortion)
Your code seems to use GetTemporaryRT in a command buffer. Have you read the docs for that? It says, among other things, “Any temporary textures that were not explicitly released will be removed after camera is done rendering, or after Graphics.ExecuteCommandBuffer is done.” That seems to mean your code is immediately destroying your temporary texture, long before you can use it for anything.