I add material to the sprite and use sprite shape to design my terrains. I can change the depth sorting to avoid two overlapping sprite shape become transparent, but the fill will overlap the border. Looking at the picture below.
The top one is the result I want. But the real result is the below one(fill overlap the border and become transparent(like a white line) because they are in the same position z)
I have updated my test project to 2018.3.0.f2 by unityhub and it was still the same problem. I uploaded my test project to github. It can clearly be seen that the border and fill overlap and become transparent in the game scene. I think that’s because of the two sprites on the same depth.
Github link: https://github.com/scozirge/SpriteShapeIssue