Shader Effects on Spine Characters in Unity
The All In 1 Sprite Shader works on Spine characters, with one thing to understand first: a Spine skeleton is not one image. It is a mesh made of many pieces, one per attachment, each with its own patch of the texture atlas. Effects that only change colour work on all of it, because each pixel is recoloured wherever it is. Effects that move or read the texture’s coordinates (Wave, Shake, Twist, Fade’s noise, an outline) work on each piece separately. This is true of any shader on a Spine character, not just this one.

Everything on this page was checked in Unity 6.3 with URP 17.3 and spine-unity 4.2, on Spineboy, the character that ships with the spine-unity examples.
Don’t own it yet? → Get it on the Unity Asset Store
Setting it up
Section titled “Setting it up”Use Custom Material Override, not the MeshRenderer. The skeleton draws with a MeshRenderer, but Spine sets that renderer’s materials itself every frame, from the atlas. A material dragged onto the MeshRenderer is replaced on the next frame and never shows. Instead, give the skeleton a material override: in the Inspector, add spine-unity’s Skeleton Renderer Custom Materials component and add an entry with the atlas’s material as Original Material and the Sprite Shader’s as Replacement Material; from code, which is how we tested it, it is one line:
skeletonAnimation.CustomMaterialOverride[originalMaterial] = spriteShaderMaterial;originalMaterial is the material Spine made for the atlas, next to the atlas asset (for Spineboy, spineboy-pro_Material). Give the Sprite Shader’s material the atlas’s texture, and pick the variant you need as usual (First Steps).

Match the atlas’s alpha. Spine exports its atlases with premultiplied alpha by default (pma: true in the atlas file), and the Sprite Shader expects straight alpha. Two ways to match them:
- Export the atlas with Premultiply alpha off in Spine’s texture packer, untick PMA Vertex Colors on the Skeleton Animation, and keep the shader’s default blend. This is the route that works for every effect, and the one the clips on this page use.
- Keep the premultiplied atlas and set the material’s blend Src to One in Advanced Configuration (Dst stays One Minus Src Alpha). Effects that only scale the colour, such as Greyscale, Hue Shift and Glow, then draw cleanly. Effects that set a colour, such as Hit Effect, Negative, Contrast and Brightness and Color Ramp, also paint the empty texels around each attachment, which are black with no alpha, so the whole rectangle of the gun or of a smoke puff lights up. Tick Alpha Cutoff and set it to 0.01 to drop those texels. Fade, which lowers the alpha, makes the faded parts pale and bright instead of see-through.
Slots set to Additive in Spine are the one catch. With PMA Vertex Colors on, spine-unity draws them in the same material by giving their vertices an alpha of 0, which adds with Src One; with the default blend they would disappear, and with PMA Vertex Colors off they need a material of their own with additive blending. Spineboy has no additive slot, so this comes from spine-unity’s code rather than a test.
Which effects work
Section titled “Which effects work”Colour effects work on the whole skeleton, with the atlas’s alpha matched as above: Hit Effect, Glow, Greyscale, Hue Shift, Color Ramp, Change 1 Color, Contrast and Brightness, Negative, Posterize and the like. They change each pixel’s colour and do not care which piece it belongs to. A hit flash, a poison tint or a glowing power up all look right on a skeleton.
UV effects work per piece. Wave, Shake, Twist, Warp, Fish Eye, Pinch and the other UV effects move each attachment’s own patch of the atlas, independently, and read into the neighbouring patches as they do: pieces of other attachments appear at the edges, and the character looks like it came apart. Effects that read a texture across the sprite break the same way: with Fade, each attachment burns in its own pattern.

Outlines
Section titled “Outlines”An outline on the skeleton is drawn around each attachment, not around the character: the lines show inside him where pieces overlap, around the hand in front of the body, and in see-through parts such as the visor, which the outline tints. Each outline also needs empty room inside its attachment’s mesh, like any sprite (Textures Setup); an attachment whose mesh is cut tight to its art has nowhere to draw one. The Scene view’s Shaded Wireframe mode shows each attachment’s mesh over the character.

The Unified Outline component does not help here: it duplicates Sprite Renderers and UI Images, and a skeleton has neither.
One outline around the whole character
Section titled “One outline around the whole character”For an outline, a dissolve or any UV effect on the character as a whole, the shader has to see the character as one image. The way to do that is a Render Texture:
- A second camera renders only the character, by layer, into a Render Texture, with a solid background colour whose alpha is 0.
- A quad in the scene shows that Render Texture.
- The Sprite Shader’s material goes on that quad, not on the skeleton. Spine draws into the texture with premultiplied alpha, so set the quad material’s Src to One, and tick Alpha Cutoff at 0.01, or a hit flash whitens the whole quad.
The shader then works on one picture of the whole character: the outline follows his silhouette, and a UV effect such as Twist bends him as one. It costs a camera and a texture per character, so it suits a hero or a boss more than a crowd of enemies.

The URP 2D Renderer
Section titled “The URP 2D Renderer”The URP 2D Renderer variant of the shader draws a skeleton under URP’s 2D Renderer, through Custom Material Override as above; in our test Spineboy drew normally with it, and with the default variant too.
What it does not do
Section titled “What it does not do”- UV effects across a whole skeleton. Each attachment has its own coordinates; the Render Texture route is the way round it.
- One outline around a skeleton drawn on the skeleton itself. Outlines follow each piece.
- Make Spine’s meshes bigger. The room for an outline has to come from the export.
