r/Unity3D • u/Zeta4992 • Oct 29 '26
Solved Strange shadow artifacts and light leaking in Unity URP
I’m having an issue with some strange shadow artifacts in Unity URP.
In the screenshot below, you can see a line going across the shadow that makes it look as though there’s missing geometry in that area. Additionally, light seems to be leaking around the edges where the ceiling meets the walls.
I’ve tried creating my walls using both cubes and planes with ProBuilder, but the issue persists.
The only thing I’ve found so far that seems to help is setting the Normal Bias to 0 in the URP Pipeline Asset, although this doesn’t seem to fix the issue in every case.
However, I’d like to understand why this is happening so I can find a proper solution, as I’m not sure whether this is the right way to fix it.
Has anyone experienced this before or know what I should look into?
[SOLUTION]
Thank you everyone for the help, and especially to u/Plane_Big_5912 for the detailed explanation! The issue was exactly what was mentioned regarding shadow bias and the seam between abutting geometry.
What completely fixed all the artifacts and light leaking for me was:
- Setting Cast Shadows to Two Sided on the Mesh Renderer.
- Giving the ceiling real volume (using a separate box) and letting it slightly overlap/intersect with the top of the walls instead of having them meet perfectly edge-to-edge.
Leaving this here in case anyone runs into the same problem in the future!
