Hey.
We would like to set up Unity 2D lightning with Spine Z-Spacing.
We've read a lot of other forum posts, but we are still missing something...
We use:
- Unity 2020.1.7
- Spine: 4.0
- URP: 8.2.0
- spine.urp-shaders 4.0
- Camera: Perspective (it looks the same on orthographic)
First, we started with shader:
Universal Render Pipeline/2D/Spine/Skeleton Lit
and added ZWrite to it.
Here link to the shader that we use (custom Skeleton Lit Depth Write) : https://pastebin.com/u9Wkrd5J
The problem is that we would like to put a counter in between of character's hand and body.
See the image describing the problem that we have:
The problem is that the shader cuts part of the counter and shows the background.
Hopefully, you can help us with that.
Thanks!