I would like to do post processing with Compute Shader is that possible ?
Sure it is.
- Create RWTexture (RenderTexture with enableRandomWrite) as your destination buffer. You can’t use OnRenderImage dest texture because it doesn’t have random write enabled.
- Set OnRenderImage source texture and dest texture from step 1 to your compute shader (ComputeShader.SetTexture)
- Start your compute shader (ComputeShader.Dispatch)
- Copy RWTexture from step 1 into OnRenderImage dest texture (Graphics.Blit)
2 Likes
Wonderful Thank you for the tip!