- Modifié
Skeleton black with URP 2D Normal map lights
Hi,
I made a normal for my tileset and it works fine, but I noticed my skeleton characters were not receiving any light (Except for the global light). I didn't add a normal map to them (not quite sure how yet), but I don't want to normal map everything and I figured they would at least be affected by the lights normally (Like other sprites that are not normal mapped)
Just wondering if I'm doing something wrong with my settings or something, or if it's an issue.
Thanks
There are two lit URP 2D shaders available in the Spine URP shaders extension UPM package:
Universal Render Pipeline/2D/Spine/Skeleton Lit
Universal Render Pipeline/2D/Spine/Sprite
Which one are you using?
You could also have a look at the URP 2D Shaders
example scene that comes with the UPM package, it demonstrates both lit shaders.
Hello, I'm using the "Universal Render Pipeline/2D/Spine/Skeleton Lit" shader.
I just updated to the latest shaders but I still have the same issue. It only receives light if 2d light doesnt use normal maps :c
So I looked at the URP 2D Shaders example and the dino sprite there was completely black. I switched it to the URP/2D/Spine/Sprite shader and it got lit correctly
I could've sworn that my skeleton wasn't working with the sprite shader before, but I changed it to the sprite shader now and she's lit now :B So I don't know if it's on purpose but the "Skeleton Lit" shader isn't working (at least for me) with normal maps
Solgryn a écritHello, I'm using the "Universal Render Pipeline/2D/Spine/Skeleton Lit" shader.
I just updated to the latest shaders but I still have the same issue. It only receives light if 2d light doesnt use normal maps :c
Could you please describe in more detail how you assign or use normalmaps at the 2d light or the material? I'm asking because the Universal Render Pipeline/2D/Spine/Skeleton Lit
shader does not provide a normalmap parameter.
Solgryn a écritSo I looked at the URP 2D Shaders example and the dino sprite there was completely black. I switched it to the URP/2D/Spine/Sprite shader and it got lit correctly
This is very strange, we could not reproduce this behaviour at our local setup yet. Are you sure that you didn't accidentally modify any of the spine-unity or spine URP shader files? Does this issue also occur if you create a new clean Unity project and import only the Spine packages?