Hi, I'm using the Spine 4.1 version and I used the Spine Skeleton Lit Shader from Universal Render Pipeline.
Regardless of the environment or lighting settings, my character displays all shadows in black.
I wish I could fix this problem.
and unity version is 2022.3.4
Only Spine Shader receives a completely black shadow
choihyunji I'm sorry to hear you're having trouble. I assume the attached screenshot shows the state of the problem, but could you also attach an image of the correct (expected) result to clarify what you are trying to fix?
Misaki The large red character is a character using a spine shader, and the SD crow character next to it is an object with only images inserted into the regular plane. I think it would be nice if a character with a spine shader had a weak shadow like a crow character.
@choihyunji Which version of the Spine URP Shaders UPM package are you using? You can find the version in the Package Manager window in Unity, or tell us the name of the zip package that you have downloaded.
If you're not using the latest version of the package, please have a try whether updating it resolves your issue.
If the issue persists with the latest package, could you please show how exactly your ambient light settings are (using an IBL skybox, or 3-color-gradient ambient light, etc.) that provide light in the shaded areas? You could alternatively also send us a minimal Unity project that demonstrates this issue as a zip package. You can send it to contact@esotericsoftware.com, briefly mentioning this forum thread URL so that we know the context. Then we can have a look at it.
Harald I sent you an email with the title of Shadow Problem! The Spine Runtime and Shader I used is version 4.1.
@choihyunji Thanks for sending the reproduction project, we could reproduce the issue and have just released a bugfix for it on the 4.1 and 4.2-beta branches. New Spine URP Shaders UPM 4.1 and 4.2-beta packages are available for download here as usual:
https://esotericsoftware.com/spine-unity-download
Thanks for reporting!
Regarding your reproduction project: please note that the com.esotericsoftware.spine.urp-shaders-4.1-2019.1
package directory was incorrectly placed in the Assets
directory and not in the Packages/
directory as described here. When placed outside of Packages
and when not installed via the Package Manager, the Universal Render Pipeline/Spine/Spine
shader fails to compile due to an unresolved #include "Packages/.."
statement and does not show up as available shaders in your project. If you just copied it into Assets
for the reproduction project that's fine, just mentioning if that's also the case with your main project.
Issue ticket URL for later reference:
EsotericSoftware/spine-runtimes2343
Thank you so, so much!! My character got the perfect shadow!
@choihyunji Very glad to hear, thanks for getting back to us!
Your character looks very cool btw!