Hello everyones, i’ve just implemented cinemachine in my project to replace the old cameras but i can’t figure out how to disable post processing on my UI layer to remove the blurring effect produced the dof.
I’ve already tried to do what i usually do:
i create a camera with post processing that draws all the layer except the UI one
i create a second camera that draws just the UI layer and without post processing
i give to the second camera an higher depth value to move it on top of the first one and i set the clear value to “none”
It always worked with the old cameras but, using this technique with cinemachine, totally break the post processing so that it’s swithced off.
What am i missing? Does anyone have any suggestion?
First of all thanks for the reply, i’ve just tried again your suggestion but i had no luck.
I forgot to mention that i’m using HDRP so maybe it could cause troubles with a double camera setup.
Could it be a bug?
Anyway, i’m attaching you a screenshot with two images: the top one is the post processed image with the GUI camera swithced off, the bottom one has also the GUI camera enabled (just the UI layer without the PP and depth value = 1).
As you can see, the GUI camera on top of the other totally disable the PP.
I hope i’ve been clear with my explanation, thanks again!
just make new Unlit HDR Shader with Shadergraph
you need multiply vertex color with your TextureMap2D to work with UI property olso you should rename TextureMap2D to _MainTex
Now set your Material RenderingPass to After post-process
use this shader for your UI