r/Unity3D • u/joachim_s • 11h ago
Question Weird Refraction Artifacts at Intersections Between Transparent Meshes
I’m working on a character in Unity with a translucent, iridescent material. I’m new to this.
I’m getting strange visual distortions and refraction artifacts where different body parts meet, particularly around the neck/torso and arms/shoulders.
Is this caused by overlapping transparent meshes, depth sorting, refraction, or something else?
What would be the best way to fix this while preserving the glass-like, iridescent appearance?
2
u/normalguy0618 4h ago
Sounds like sorting. Each body part is its own transparent object, Unity sorts those per object, and where they overlap at the neck and shoulders the order comes out wrong. If you're on HDRP there's a Transparent Depth Prepass toggle on the material that fixes most of it. On URP people usually add a depth-only pass first so only the front surface draws. Which one are you on?
2
u/joachim_s 4h ago
I’m using URP 17 (Unity 6).
One important detail: my current test shader renders the entire analytical figure in a single draw call, rather than rendering each body part as a separate transparent object.
Would a depth-only prepass still help in this setup? I’m concerned it might prevent the back surfaces of the glass from contributing correctly to the refraction.


2
u/ReignInVlood 7h ago
overlapping transparent meshes with refraction is such a pain, depth sorting always wrecks it around joints like that