• Bugs
  • Spine LWRP Shader + LWRP Transparent Material Problem

Related Discussions
...

Thank you for all the work on the LWRP shaders.

We have a problem when the Spine character goes in front of a LWRP transparent material - a door glass pane in this case. The Spine material seems to render behind the glass. Interestingly the standard Unity 2D Sprite also exhibits the same behaviour when placed in front of the glass. A 3D object with a standard LWRP material is fine when placed in front of a LWRP transparent material.

The character has the Light Weight Render Pipeline/Spine/Skeleton Lit shader applied. We are also using Linear color space and Unity 2019.2.15f1 & LWRP 6.9.2. The glass material properties are shown in the image below.

I haven't yet had the opprotunity to test it with 20919.3.0 but I thought it's worth logging for current versions anyhow.

8 months later

Thanks for reporting!

It seems as if the Lightweight Render Pipeline/Lit shader uses Custom Render Queue = 3050 when transparent, so it's drawn a bit after the other shaders. It draws correctly when I set the Priority parameter of the transparent material to +50, resulting in the same render queue value of 3000. I will do some more investigations whether it is safe to increase it to 3050 as well, and will then release a bugfix soon.

You can find a new isue ticket here:
https://github.com/EsotericSoftware/spine-runtimes/issues/1568

I will let you know once the issue has been resolved.
Thanks again.


Sorry for the long delay. Actually this can only be resolved by manually setting the render queue at the materials, neither render queue default values 3000 nor 3050 will work for all cases.

See related issue ticket [unity] Sprite shader render queue property too limited · #1737, and commit 996cbea which adds better render queue control to all Spine Sprite shaders (including LWRP and URP).