• Bugs
  • Incorrect outline with URP outline shader

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

Hi,

when using the Universal Render Pipeline/Spine/Outline/Skeleton-OutlineOnly shader (without keyword _USE8NEIGHBOURHOOD_ON), the result seems incorrect.

in Spine-Outline-Common.cginc, I think numSamples should be 4, not 1

#else // 4 neighbourhood
   float numSamples = 1;
   float average = (pixelTop + pixelBottom + pixelLeft + pixelRight) * vertexColorAlpha / numSamples;
#endif

Good catch! Thanks very much for reporting (and especially for signing up on the forum just for that)!
To my shame I noticed this issue some time ago, but was then distracted before I could create a ticket. :zipper:

A bugfix has just been pushed to the 4.0-beta branch, it will be released along with the next upcoming 4.0-beta unitypackages and UPM zip files.

Issue ticket for reference:
https://github.com/EsotericSoftware/spine-runtimes/issues/1864