How to : making a glowing cube using shaders?


I was wondering how can I create cube that has glowing edges by using Unity Shaders? Is there any chance of accomplishing that?

I have a standard 3D Cube, let’s say it has default material, but I would like to make it a bit glossy with bright shining edges how can I do that?

The cube that I would like to get would look something like that :


The emission properties of the standard shader are what you looking for. Add a texture with bright edges and a dark center as the emission texture to make the edges bright by themselves (as in “without having to be lit by another light”).

To make the bright edges glow, you then add bloom postprocessing effect to your camera. Nowadays, this is done by with the Post Processing Stack from the Asset Store. Here’s a howto for setting it up.