I upgrage Unity2019.4.30 URP7.7.1 to Unity2021.2.3 URP12.1.1. Post Processing Depth Of Field only work in base camera.in Frame Debugger the Overlay Camera use the Base Camera depth result. if I set the Base Camera Culling Mask → Nothing. the all Overlay Camera Depth Of Field doesn’t work.
In Unity2019.4.30 URP7.7.1 it seems everything ok. I can see the overlay depth reslut is correct in Frame Debugger.
Depth of Field works really bad in Unity 2021 for me. It can’t focus on a very close objects.
Tonemapping (I using ACES) make game mode darker twice because of Overlay camera.
Here is Edit mode with ACES and Game mode with ACES + ACES from Overlay.
Post proccess Volume (as a component) on Cinemachine cameras with the same Post Proccess Volume won’t updating when I changing Post Proccess Volume.
This is a only bugs I found…
I fund a URP setting Depth Priming Mode → Force. The Overlay Camera can renderer the depth correct.
But the transparent object can’t write depth. So the Post Processing Depth Of Field with transparent object donesn’t work. In 2019 URP7.7.1 I add A renderer feature as below.But it no effect in 2021 URP12.1.1
Finally, I find a way to use Depth Of Field on Transparent objects and Overlay Camera.
It’s a URP BUG in Unity2021.2.3 URP12.1.1
I fund some changelog on URP github.
Adding Depth Texture option for Overlay Cameras #5464
[URP] Move depth copy pass after the transparents pass #5305
so I cherry pick the commit to the URP12.1.1 in my local package.
It seems everything OK. may be need test on the Android or iOS.