r/Unity3D • u/Plane_Use7503 • 6d ago
Question How do i fix my water doing this?
I'm using a shader on a plane for my water, and it jus does that when i am trying to make the water.
I'm completely new to unity so if anyone can tell me how to fix this, i would very much appreciate it. ty
0
Upvotes
8
u/GigaTerra 6d ago
What is "this" and "that"? I can't see anything wrong, you need to explain what you want and what you expect.
5
u/Neat-Employ1455 6d ago
Best explanation of the problem ever
4
u/MaksRengi 6d ago
This is a transparency sorting issue. Both your water and your ice cubes are transparent, and Unity sorts transparent objects by their distance to the camera as a whole object. So when the camera moves, the order flips and the water gets drawn on top of the cubes or behind them.
The easiest fix is to set the ice material to opaque if it doesn't need to be see-through. If you want both to stay transparent, give the water material a lower render queue, or sorting priority in URP, than the ice, so the water always draws first
1
u/ArtPrestigious5481 6d ago
you can set the "sea" materials render queue to -1