The Outline Shader draws a customizable outline around your sprites – anything from a crisp cartoon outline or a selection highlight to a soft glow around the sprite, or a glow that creeps inwards from its edges. The outline is traced directly from the alpha channel of the sprite's texture, so there are no extra textures or duplicate sprites to set up.
Apart from the outline, the shader preserves the familiar URP Lit material options, such as albedo, alpha cutoff, normal maps, and emission. The exact options depend on the Renderer you are using, because some URP Lit properties are not supported by the 2D Renderer.
A controller script is included for dynamically changing the shader variables, creating dynamic effects, such as an outline that keeps growing, or a glow that pulses and changes its color.
Five demo scenes ship with the asset for each Renderer, from a single sprite with a hard outline to outlines animated with the controller script. Use them as they are, or as a starting point for your own.
Ready to use out of the box. Fully customizable. For Unity 6.0+.
For more detailed information, please consult the following PDF document (also included in the package):