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

  1. 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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.