I’m making a 2D top-down procedurally generated world similar to Factorio. I use 2d sprites for everything except terrain, terrain is a 3d mesh. I have a problem when I enable Y-sorting for sprites, because it also affects how mesh is rendered, so I want to disable Y-sorting for mesh (I draw it via Graphics.DrawMesh).
But I don’t know how to implement it. Should I somehow use two renderers with and without Y-sorting or use some clever material property?
I have a temporarily working solution, setting z param for custom axis really big number, but when I’m far up or down it stops working.