- Home /
Sprites not working with Depth of Field Post Processing
I'm using Unity 2020.3.14f1, and I have the project set up with the URP 2D Renderer using the default 2D lit shaders. Depth-based post processing effects are not functioning, such as depth of field. I've found that the default 2D lit shader has ZWrite Off, but when I attempt to change ZWrite to On it just reverts back to ZWrite Off after returning to the editor. Is there any way I can force it to enable ZWrite, or is there an alternative shader that works with depth based post processing effects and can work with Unity's 2D lighting system?
Your answer
![](https://koobas.hobune.stream/wayback/20220613040955im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Limit Amount of Light Applied to Sprite 0 Answers
URP Lit 2D Sprite Shader Texture 0 Answers
How do I do 2D rim lighting in shadergraph? 2 Answers
2D Shadow Help 0 Answers
Can Normal maps be used to create a 2D sprites lighting system? 2 Answers