Outline Shader (2D)


outline width, softness, and HDR color Three quality levels to balance smoothness and performance ... Support for both ... For more information, see our FREE Reconstructed Lit Shader.


by Project G.A.M.E.D.E.V.


Price History +

The easiest way to add outline or glow effects to your 2D sprites.

IMPORTANT! This asset requires the Shader Graph package for the shaders to work.

The Shader Graph package already comes bundled with most Unity versions and rendering pipelines, but it can also be imported into your project from the Package Manager window inside the Unity Editor.


This asset supports Unity 6.0+ and the Universal Render Pipeline (URP) only. It includes separate shader versions for both the URP Universal Renderer and the URP 2D Renderer.


This 2D Outline Shader allows you to create outlines or inner/outer glows for your 2D sprites, perfect for selection highlights, interactable objects, or magical auras. Ready to use out-of-the-box. Fully customizable. For Unity 6.0+.


The shader preserves the familiar URP lit material options, letting you combine the outline effect with features such as normal maps, emission, metallic properties, and ambient occlusion. The outline itself is highly customizable, with controls for width, color, softness, quality, and direction (inner or outer).


The asset also includes a controller script which allows you to animate the effect at runtime and create advanced effects, such as pulsating outlines, changing outline colors, and stacked animated effects, on the same sprite. Alternatively, you can modify each shader property from your own scripts.


FEATURES:

  • Inner or outer outline for any sprite
  • Outline smoothness control for crisp edges or soft glows
  • Traced from the sprite's alpha, with no extra textures or duplicate sprites needed
  • Adjustable outline width, softness, and HDR color
  • Three quality levels to balance smoothness and performance
  • Lit sprite shading with normal map and HDR emission
  • Runtime animation via included controller script
  • Five demo scenes, including animated outline examples
  • Support for both URP Universal Renderer and URP 2D Renderer

BONUS: The Shader Graph Subgraph asset included in this pack is a reconstructed standard lit shader. It can be imported into your own custom Shader Graph shaders, allowing you to both create custom shader effects and keep the standard shader options such as normal maps, emission, etc. For more information, see our FREE Reconstructed Lit Shader.


Industrial-Grade Quality Control


Stability and compatibility are verified through a continuous integration pipeline that runs automated tests across different Unity versions, render pipelines, and OS versions in the cloud. This helps detect issues that may not appear on local machines and improves test repeatability and reliability.


Documentation


You can download the following document deliverables (.pdf files) concerning this asset (also included in the package):



For further information, visit the shader's page on our website.

For further technical details, visit the shader's documentation page.