• Unity
  • Spine Animation + 3d lighting | spine-unity (3D)

  • Изменено
Related Discussions
...

Hello,
I am trying to have a spine skeleton to be lit by 3d lights in a 3d space, as well as casting shadows.
Its important that the lighting can be colored as well.

Currently I've tried using a bunch of different shaders including spine/skeleton lit, as well as spine/sprite/pixel lit
On all of them I'm getting rendering issues, the material turns purple.

Does anyone have any suggestions on how i can get it working?

Most likely you are using Universal Render Pipeline, but are not using the separately provided spine-unity URP shaders. The lit shaders included in the spine-unity unitypackage are not compatible with URP lighting.

Please see the docs pages here on how to install the spine-unity URP shaders UPM package:
spine-unity Runtime Documentation: Optional Extension UPM Packages
spine-unity Runtime Documentation: URP Shaders Extension UPM Package