Hey guys,
After searching for a solution to highlight some objects in my project I concluded I want something like an outline.
Finally it seemed, that the best solution was to get this with a shader.
However most solutions on the internet didn’t work out and the asset store didn’t have free outline shaders.
I wanted the benefits of the standard shader + the outline.
Therefore I mixed the standard shader with an additionall outline pass and rewrote the ShaderGUI.
I wanted to post it for free on the asset store, but to become a publisher is too much of a hassle.(There has to be a dedicated website and support contact etc.).
Now I’ll just want to post it here for free, so anyone who just needs a simple outline but doesn’t want to pay or write one himself can just use it.
There still is the problem with the outline not looking correctly for edges like the Unity standard cube. Therefore you can use an imported cube mesh with smoothed edges. (Look in my unitypackage, you can use that cube there).
Screenshots:
Outline_Shader.rar has the Shader and the ShaderGUI.
The Unitypackage additionally has the tescene, where you can click on certain primitives with a red outline, and they get selected and change to a green outline.
It also contains the new cube, with fixed outline and you see the difference to the standard unity cube.
If you have any suggestions, you can tell me and I’ll try to implement them, when I have time.
2644700–186257–Outline_Shader.rar (6.13 KB)
2644700–186258–outline.unitypackage (38.5 KB)