Unity Issue Tracker - Mesh with a Custom Shader appears to overlap when rendering with Blending Mode set to Alpha or Premultiply
Closed
UUM-48041
Mesh with a Custom Shader appears to overlap when rendering with Blending Mode set to Alpha or Premultiply
Unity: Universal RP
As Designed
2023.3.X
2023.2.X
2023.1.X
2022.3.X
2021.3.X
for the blending to work properly a multipass shader that writes to depth before writing the water is required, so that the depth test can be enabled preventing to write overlapping fragments and the order is preserved
How to reproduce:
1. Open the attached “MeshXBug.zip“ project
2. Open the “Bug Demo“ Scene
3. Enter Play Mode
Expected result: Mesh is rendered correctly
Actual result: Some parts of the mesh aren’t rendered correctly (it looks like some parts of the mesh overlap each other)