Outline shaders pack


Outline shader pack on the Unity Asset Store:

Multiple, easy ways to draw outlines and highlights for your game. Perfect if you don’t want to spend too much time customizing meshes to make them work with outlines.

Basic outlines shader - per object shader. Perfect if you need to outline only character or few game objects. You can also use it to outline whole layer of objects. Because of the UV baking tool that comes with the pack. You can create good looking outline even for flat shaded objects.

Edge detecion outlines - fully screen space shader. Perfect for making your whole game, or just selected objects, outlined.

Blur outlines - fully screen space shader. Perfect for higlighting objects.

Feature summary:
Package contains three solutions for rendering outlines. You can easily add any of these to your game.
All three ways work per layer, which means you can specify which objects should have outlines.

Basic outlines shader is per object shader. It can be added as a second material to your mesh or by using unity’s render objects renderer feature.
Basic outlines shader can be used to draw outlines based on:

  • mesh normals
  • mesh vertex positions
  • baked normals from UV channel
  • baked normal maps

The package includes Tool for baking smooth normals into mesh UV channel, so you could easily use outlines even with flat shaded meshes.
This shader gives you also option for changing the outlines thickness based on the camera distance from the mesh, so you could more easily controll outlines visibility.

Edge detecion outlinesshader uses custom renderer feature that calculates the edges of the objects based on the depth of the scene and meshes normals.
You can controll whether the objects should be visible behind other objects or not by adding depth mask. It is a fully screen space effect, but you can easily choose which objects are affected by this outlines.

Blur outlines shader also uses custom renderer feature that draws objects and then blurs them. You can choose between blur or simple outlines around the objects.
You can also controll whether the objects should be visible behind other objects or not by adding depth mask.It is a fully screen space effect, but you can easily choose which objects are affected by this outlines.

Hi, looks good!
Would be helpful to make the documentation (instructions) public to help evaluate whether it fits certain needs.
E.g. the text here, the asset store and website talk about both per-object and screen-based indicating potential to restrict the “Edge detection outlines” to only certain objects (or exclude certain objects).
In our case, we have both 3D and 2D objects and wish to highlight nice edges on the 3D objects only. The 2D tend to be billboarding quads (and a few more complex shapes) showing already-outlined hand-drawn images (so we don’t want lines drawn around the edge of the quad etc!)
Thanks and GL with the asset!

Thanks for kind words. I thnik i will use your good advice and ill make documentation public. I tried to make it clear on the asset store page, but i probably did bad work.
About your concerns, the screen space effects e.g. blur and edge detecion outlines are applied per layer, it means that you can apply this effects to any objects in your scene wihout affecting objects you do not want to affect.
This means you can choose which objects are outlined and which are not.
PS. And sorry for late answer, I wasn’t up to date with unity forum, and i forgot to set email notifications. If you have any more questions feel free to ask :slight_smile:

1 Like