Camera clear flags ignored in fullscreen post-processing shader effect

I created a post-processing effect, that is all in the shader and the camera script code does a graphics.blit in OnRenderImage. But the camera it is attached to isn’t doing any clearing, the Clear Flags are set to Solid Color, but it’s acting as if it’s “Don’t Clear”. Unless I make the camera less than full-screen - then it clears the camera, but to default blue instead of the black I have set.

Any ideas? Do I need to be doing something special in the shader?

Does anybody have any ideas about this? My framerate is tanking when enabling this shader, and I think it might be because of this problem, where it’s basically rendering two cameras instead of one because the one isn’t full screen.

Did you take a look at the frame debugger to see what is happening (and when). This often gives a good idea what is going wrong in what way :slight_smile: