Outline, Dissolve and Glow Effects in Your Own Shader Graph
Each of these effects is a few nodes between your graph’s texture and its output. An outline reads the texture’s alpha around each pixel and paints the empty pixels next to the sprite. A dissolve compares a noise texture against an amount and cuts the alpha where the noise is lower. A glow pushes the colour above 1 so that Bloom spreads it into a halo. You can wire each one from Unity’s own nodes, or drop in All In 1 Shader Nodes, where each is a single node.

How each effect is built
Section titled “How each effect is built”A Shader Graph outline
Section titled “A Shader Graph outline”The outline goes on the transparent pixels right next to the sprite. For each pixel, sample the texture’s alpha a little way off to the right, left, top and bottom: if any of those is solid and the pixel itself is not, paint it in the outline colour. This graph does that with Unity’s own nodes:

- Texture Size reads
_MainTexand gives its Width and Height in pixels. Divide the Outline Width property, in pixels, by each, and Negate both results: that makes four offsets, right, left, up and down, each built in a Vector 2. - Each offset goes into the Offset of a Tiling And Offset, which shifts the UVs, and a Sample Texture 2D reads
_MainTexthere. - Add the four A outputs and Step the sum against 0.5: 1 wherever any neighbour is solid.
- Multiply that by One Minus the sprite’s own alpha, so only transparent pixels next to the sprite are left. That is the outline mask.
- Lerp from the sprite’s colour to Outline Color by the mask. The Lerp works on all four channels, so on the outline the alpha rises to Outline Color’s alpha too: the colour goes to Base Color, and its A, through a Split, to Alpha.
Four directions reach only along the axes, so a thick outline gets thinner at diagonal corners. Adding the diagonals means eight samples, which is tedious to wire in nodes: a Custom Function node does the same in a few lines. Set its Type to String, its Name to SpriteOutline, its inputs to Tex (Texture 2D), UV (Vector 2), Width (Float) and Color (Vector 4) and its output to Out (Vector 4), then paste this as the body:
float2 offset = Width * Tex.texelSize.xy;float4 color = SAMPLE_TEXTURE2D(Tex.tex, Tex.samplerstate, UV);float around = 0;[unroll] for (int i = 0; i < 8; i++){ float angle = i * 0.7853982; around += SAMPLE_TEXTURE2D(Tex.tex, Tex.samplerstate, UV + float2(cos(angle), sin(angle)) * offset).a;}float outline = step(0.5, around) * (1 - color.a);Out = lerp(color, Color, outline);Feed it _MainTex, a UV node, Outline Width and Outline Color, and wire Out like the Lerp above. Shader Graph passes a texture input as a UnityTexture2D, which is why the body samples it with SAMPLE_TEXTURE2D(Tex.tex, Tex.samplerstate, ...) and reads the size of one texel from Tex.texelSize.

We built all three graphs on this page as Sprite Unlit graphs, the target URP’s sprites use, and drew them on a Sprite Renderer. Each compiled in every pass, and they draw as the clip shows, in Unity 6.3 (6000.3.0f1) with URP 17.3.
Two things trip people up:
- The outline needs room. It can only appear inside the mesh, on pixels that are transparent in the texture. A sprite with a tight mesh, or art that touches the edge of its image, gets its outline cut off. The sprite outline guide covers the fixes, and they are the same in Shader Graph.
- This is a sprite outline, not a mesh outline. It traces the edge of a texture’s alpha. A Shader Graph draws its mesh once, so the usual outline around a 3D model, an enlarged copy drawn behind it, needs a second material on the renderer or a Renderer Feature. The 3D outlines guide compares the ways to do that.
A Shader Graph dissolve
Section titled “A Shader Graph dissolve”A dissolve compares a noise value per pixel against an amount and cuts away the pixels below it. The band just above the cut becomes the burning edge.

- Simple Noise gives a value per pixel; this graph uses a Scale of 30. Step, with Dissolve Amount as its Edge and the noise as In, returns 1 where the noise is at or above the amount and 0 below it: that is the cut.
- Add Edge Width to Dissolve Amount and Step the noise against that too: the same cut, a little further on. Subtract the second Step from the first, and what is left is a thin band along the edge.
- Multiply the band by Edge Color, an HDR colour, and Add it to the sprite’s colour into Base Color. With Bloom on, that band glows.
- Multiply the sprite’s alpha by the cut into Alpha.
Drive Dissolve Amount from a script to play it. Simple Noise’s values gather around the middle of 0 to 1, so in the clip the soldier is nearly gone by an amount of about 0.6, not 1: sweep the range you actually see, or remap the noise first.
- Opaque graphs need Alpha Clipping. A Sprite Unlit graph is transparent, so the alpha cuts as it is. In an opaque Lit or Unlit graph the alpha does nothing until you tick Alpha Clipping in the Graph Inspector; its threshold then decides what disappears.
- A noise texture is data, not a colour. If you use a noise texture instead of Simple Noise, untick sRGB in its import settings. Left on, a Linear project darkens the noise and the dissolve runs ahead of its amount.
A Shader Graph glow
Section titled “A Shader Graph glow”Multiply the colour by a number above 1, through an HDR colour property or an intensity slider, into Base Color in an Unlit graph or Emission in a Lit one. On its own that only burns the colour out to white. The halo comes from Bloom: HDR on in the URP asset, and a Volume with Bloom whose Threshold is below your glow. A Screen Space Overlay canvas never gets post processing, which the sprite glow guide goes into.
With All In 1 Shader Nodes
Section titled “With All In 1 Shader Nodes”Don’t own it yet? → Get it on the Unity Asset Store
Each effect above is one node under AllIn1Nodes in the Shader Graph search menu, and the Effects Breakdown lists every input:
- Sprite Outline (Color Effects) takes your sampled colour in Input Color and returns it with the outline added. Feed the same texture into its Tex input and into the asset’s own Texel Size node, under AllIn1Nodes, wired to its Texel Size input. That input expects the four values in one Vector 4; Unity’s Texture Size node gives them as four separate outputs. Outline Width, Outline Color, Outline Alpha and Outline Glow set the look; Outline Glow above 1 is what Bloom picks up. It reads the texture eight times per pixel.
- Fade - Burn (Alpha Effects) is the dissolve with a burning edge. It takes your colour in Input RGB and your alpha in Input Alpha, and has two outputs: Out_RGB goes to Base Color, because the burn edge lives there, and Out_Alpha goes to Alpha. Animate Fade Amount from 0 to 1; Fade Tex is the noise, and Burn Width, Burn Color and Fade Transition shape the edge. The same Alpha Clipping rule applies on an opaque graph.
- Glow (Color Effects) multiplies your colour by Glow and Glow Color and adds it on top, ready for Bloom. Glow Tex does the same through a mask texture, so only the parts you paint shine.
They chain like any other node: the output of one into the input of the next. This is the opening clip’s graph:

The clip drives Outline Width and Fade Amount from a script through exposed properties; Animating and Scripting shows how. Chaining Node Effects covers the order to wire things in, and the demo’s GRPH_Demo_FadeBurn and GRPH_Demo_Sprite_Gameboy graphs use these nodes; Demo Scenes and Graphs lists them all. A node you don’t wire costs nothing: only what is connected reaches the compiled shader.
In Amplify Shader Editor
Section titled “In Amplify Shader Editor”The same nodes are in Amplify Shader Editor’s node menu, under AllIn1ShaderNodes and the category. Fade - Burn is called Fade Burn there, and Glow Tex is Shader Graph only: in Amplify, mask the Glow node yourself. Amplify needs the compatibility package and one of its three templates, for Built-in or URP; there is none for HDRP. Amplify Shader Editor has the setup.
In VFX Graph
Section titled “In VFX Graph”VFX Graph draws its particles with Shader Graphs, not with hand written shaders, which is why the All In 1 shaders can’t be used on its particles. A Shader Graph built with these nodes can:
- In the graph’s Graph Inspector, under the Universal target, tick Support VFX Graph.
- In VFX Graph, use a Shader Graph output, such as Output Particle ShaderGraph Quad, and pick your graph in it. Your exposed properties appear as inputs on the output.
We checked this in Unity 6.3 with URP. The opening clip’s graph (Sprite Outline into Fade - Burn) and the demo’s slash graph, used as outputs of VFX Graph’s Simple Loop template, compiled in every pass, and the particles drew with each graph’s look. Not checked: HDRP, Unity 2022.3, and the depth and vertex nodes on particles.
What it does not do
Section titled “What it does not do”- No mesh outline node. Sprite Outline traces a texture’s alpha. For a 3D model, the Rim node gives a glowing edge, and the 3D outlines guide covers real outlines.
- No post processing. Glow, Outline Glow and a bright Burn Color only make the colour bright enough; the halo is Bloom’s job.
- Your graph’s settings stay yours. The nodes don’t switch on transparency or Alpha Clipping for you.
- No Amplify on HDRP. On HDRP, use the Shader Graph nodes.
