Hi everyone! As the title suggests, I’m creating a custom Unity URP shader for my Spine animations based on the Spine-Sprite-URP.shader in the Spine UPM package. My goal is to customize the vertex manipulation to add a billboarding function to the original shader.
I started by creating a new shader file called Spine-SpriteBillboard-URP.shader in my Assets/Shaders folder. I then copied everything from the Spine-Sprite-URP.shader in Packages/com.esotericsoftware.spine.urp-shaders/Shaders. Afterward, I edited the lines in my billboard shader, adding “Packages/com.esotericsoftware.spine.urp-shaders/Shaders” before the original “Include/Spine-xxx-URP.hlsl” so that my new shader can correctly locate the included HLSL files. However, I am now encountering a strange compilation error:


It appears that the included HLSL files in my billboard shader cannot find the Spine-Sprite-Common-URP.hlsl file, which is included within itself.
I’ve tried deleting my whole Library and letting Unity reimport it, but it didn’t work.
I’m unsure if this is related, but I’m using Unity 6.2 and Spine 4.2.
Any insights would be appreciated!