decentraland / decentraland/unity-explorer
[QA] Rendering | Alpha sorting renders transparent assets in incorrect order
- Dominant language
- C#
- Stars
- 23
- Forks
- 17
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 94
Description
### 🛠️ **Build version:**
- **v0.139.0**
### 📔 **Issue Description:**
Two related rendering issues have been observed with transparent assets. First, when two or more objects with transparency overlap, they do not render in the correct depth order, causing elements that should appear behind others to show in front. Second, a wearable asset (rainbow) is not visible from the back view, suggesting a potential backface visibility issue. Both issues have been observed in multiple locations. Root cause is pending dev confirmation.
### 👣 **STR:**
**Alpha sorting:**
1. Launch the explorer
2. Navigate to a location with multiple overlapping transparent assets
3. Observe the rendering order of the transparent elements
**Wearable not visible from back:**
1. Launch the explorer
2. Equip or observe an avatar wearing the [rainbow halo](https://decentraland.org/marketplace/contracts/0xce3dcdb52098ddaf5436da1c5ffb21ce6c36bee4/items/1)
3. View the avatar from the front and observe the rainbow renders correctly
4. View the avatar from behind and observe the rainbow is not visible
### ✔️ **Expected Result:**
- Transparent assets should render in the correct depth order regardless of camera angle
- Wearable assets should be visible from all angles, including the back view
### ❌ **Actual Result with evidence:**
- Overlapping transparent assets render in incorrect depth order, causing visual artifacts in multiple locations across the world
- The rainbow wearable asset is correctly visible from the front but completely invisible from the back view
- Screenshots and video attached
https://github.com/user-attachments/assets/93c06cf5-7f74-42b0-9103-879b9a6796a1
### ➗ **Reproduction:**
⚠️ Intermittent - (Observed in multiple locations but not consistently reproducible in all cases)
#### 🖥️ **Operative system and additional Notes:**
Both issues reported by the team and confirmed visible across multiple users.
Observed in multiple locations across the world. Confirmed by dev (Thomas Wright) as an alpha sorting issue affecting overlapping transparent assets.
If tested on Mac, specify if chip is M1 or Intel.
Contributor guide
Assessment
This issue has not been assessed yet.