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.