Search Issue Tracker
By Design
Votes
0
Found in
2021.3.30f1
2022.3.9f1
2023.1.12f1
2023.2.0b8
2023.3.0a4
Issue ID
UUM-48041
Regression
No
Mesh with a Custom Shader appears to overlap when rendering with Blending Mode set to Alpha or Premultiply
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)
Reproducible with: 2021.3.30f1, 2022.3.9f1, 2023.1.12f1, 2023.2.0b8, 2023.3.0a4
Reproducible on: macOS 13.4.1 Ventura (Intel)
Not reproducible on: No other environment tested
Notes:
- Issue does not reproduce if the “TransparencyBug“ shader has Blending Mode set to Additive or Multiply
- Also reproducible in Player
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
Resolution Note:
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