Hi, i am not a graphics programmer and was wondering if is it possible to create a UI shader to be used in these common cases where you blur a UI panel to hide scene when pausing game etc… ?
Have you tried to search for a solution with a phrase like “blurry ui background unity”?
Hi, thanks for suggestion but my question is HDRP specific. I however found some shaders that work with the standard pipeline but couldn’t find anything about HDRP !
If your UI works with HDRP, check the shader sources for the shader that’s in use in the UI. Then modify it.
EDIT: except it might not be easy, there’s no GrabPass support for HDRP, so you probably have to think about something else + wait for someone more knowledgeable to help you.
My understanding is that this is currently very difficult because grabpasses are not supported in shaders in any of the SRP’s (it’s terrible for performance).
This x.com conversation on twitter with Andy Touch (Unity staff) is around the Universal RP but the difficulties are similar in the HDRP. Might be worth keeping an eye on that thread because he has been asked about doing the same for the HDRP. Note that as far as I’m aware, HDRP doesn’t currently support custom render passes like the Universal RP does (?), so I’m not sure Andy’s solution once released is even portable to the HDRP as things are.
I’m currently using a ‘hacky’ method until I can find something else where I change the depth of field settings on a volume to blur the scene behind the UI.
Hopefully someone else has a better suggestion.
If you dont mind full screen blur, you can use the dof PP effect to get away with it.