How to disable SSAO on specific Camera(s)?

I use multiple Cameras in a given scene. One of which is the typical Main Camera, but then there are additional cameras which are used to fill in some pixels for auxiliary render textures. I don’t need to have SSAO applied to these additional cameras (but I do want it applied to the Main Camera).

However, when I look at the frame debugger, it seems there are SSAO related draw calls happening on these cameras.

Is there a way to prevent the SSAO render feature from running on certain Cameras?


Cameras 1/2 don’t need to use SSAO at all. Camera 3 (the Main Camera), should use SSAO.

The first two cameras are setup like this (no depth texture, no post, no AA, etc):

You can set different Renderer settings to each cameras. So you can create new renderer settings (with disabling SSAO) and assign to your second camera. (Rendering > Renderer in camera inspector)

2 Likes

Yes, that does the trick. To be specific: Create a new UniversalRendererData asset, apply appropriate settings (which for my case, is basically disable everything), then add the new UniversalRendererData to the render list of the UniversalRenderer’s quality settings asset (e.g. Universal RP-Medium Quality). And assign the newly added renderer entry to the Camera.

1 Like