Due to changes in my project I need my spine assets to be able to receive shadows. The URP Shaders UPM package does work in this regard, but the shaders aren't compatible with the tint black feature.
In the tooltip for the Tint Black flag it mentions that the needed data is written to uv2 and uv3, so I attempted to add the functionality to the shader myself. I was unable to do so because I don't know the format of the VertexInput to read the UVs. Even then I'm not sure I could've done it myself, I'm not really a shaders guy.
Nevertheless, I need some assistance. Has anyone made a version of a shader that supports both tinting as well as receiving shadows? Or alternatively it'd be great if someone could help me modify the URP shader to have tinting support.
The specific shader I'm using is "Universal Render Pipeline/Spine/Sprite", though I've tried the other two in the package as well.

Related Discussions
...

alright, I believe I've gotten it to work. Somewhat, at least.
note the the outlines on the body, they're tinted correctly now (are black on the texture) the shadow is tinted in the color as well, which isn't great, but I think I can fix it.
The biggest problem implementing this was that the VertexInput struct in "com.esotericsoftware.spine.spine-unity\Runtime\spine-unity\Shaders\Sprite\CGIncludes\SpriteLighting.cginc" didn't implement uv1 and uv2
after that, I followed this post's suggestions: https://esotericsoftware.com/forum/d/14142-urp-2d--tint-black
I hope a proper implementation will be added though. If I manage to get everything working correctly I'll definitely post an update here/github, but as mentioned before, this isn't my forté, so I can't gurantee anything.

    um mês depois

    myonmyuu We have finally added support for Tint Black functionality at all Spine URP shaders (2D and 3D shaders) and at all standard pipeline Spine/Sprite shaders. This feature can be enabled via the Tint Black material parameter in the Inspector. Note: The URP Sprite shaders provided in the Spine URP Shaders extension UPM package require the latest version of the spine-unity runtime (package version 4.1.12, 2023-05-31 or newer) to display the added material parameters in the Inspector GUI.

    The respective commits have been pushed to both the 4.1 and 4.2-beta branches.
    New 4.1 and 4.2-beta spine-unity unitypackages and Spine URP shaders UPM packages are available for download here as usual:
    https://esotericsoftware.com/spine-unity-download

    Sorry that this feature has been delayed for such a long time!

      5 dias depois