• Unity
  • how to receive shadow from point light or spot light?

Related Discussions
...

I want my character to receive shadows from point or spot lights

like this(I tried to modify the Skeleton Lit shader. It works but there are a lot of other problems )

But it looks like the spine only support receive shadow from Directional Light :think:

i tried
1 enable additional lights and Cast Shadow in URP Asset
2 switch character shader to Universal Render Pipeline/Spine/Skeleton Lit
3 enable _RECEIVE_SHADOWS in material

but I still cant receive shadow

What should I do?

Environment
1.unity 2021.3.4LTS
2.URP12.1.7
3.SPINE4.0
4.urp-shaders-4.0-Unity2019.3-2022-05-25

Thanks for reporting and sorry for the troubles!

We have fixed this issue on the 4.1-beta branch (in this commit). A new 4.1-beta URP shaders UPM zip package is available for download:
Spine Unity Download: spine unity 4.1 beta
Note: you should be able to use the modified 4.1-beta file as-is in a 4.0 project with 4.0 Spine URP shaders. Copying it over your existing Spine-Sprite-ForwardPass-URP.hlsl file should integrate the changes without any issues.

Please let us know if this resolves the issues on your end as well.

Issue ticket URL for later reference:
https://github.com/EsotericSoftware/spine-runtimes/issues/2098

The problem was solved.
It's working fine
Thanks.

I did these things

  1. Downloaded newest urp-shaders-4.1 beta , and replaced the same file Spine-Sprite-ForwardPass-URP.hlsl In my project
  2. Switch character shader to "Universal Render Pipeline/Spine/Sprite"
  3. Enable _RECEIVE_SHADOWS in material

Thanks for confirming, glad it resolved your issue.