Sprite Shape border overlap fill become transparent issue

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)

this is sample package
Github link:
https://github.com/scozirge/SpriteShapeIssue

Does anyone know how to fix it? Thanks.

Do anyone know how to tackle this issue?

Haven’t worked with sprite shapes, but maybe using sprite masks could solve your issue?

@scozirge I believe this has already been fixed in 2018.3 . Please download and try the latest version from https://unity3d.com/unity/whats-new/unity-2018.3.0
Please file a bug report if its not the case.

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

Thanks for the help.

I have updated my project to 2018.3.0f2. However, the problem still exists. Where do I file a bug report?

@scozirge Thanks for submitting the test project. Will take a look asap and will update this thread.

Thanks. I really appreciate. Is there any other way to tackle the issue, like changing every individual border’s sorting layer?

@scozirge To resolve the issue with diffuse shader, please disable ForwardAdd by add noforwardadd in
#pragma surface

Attached is the modified Spritres-Diffuse shader for reference.

Please let us know if this fixes the issue.

4103092–359317–SpriteShape.shader (1.66 KB)

@Venkify It works. Thank you for your patience. I really appreciate your help.
4103467--359377--upload_2019-1-15_14-35-23.png

Agreed. This fix works.

i have same issue, can you please explain more how and where should i apply this fix in unity??
like i don’t even know where is forwardadd!