A bare-bones edge detection code in Unity.
Please note that this is by no means the best/most efficient way to do it. The purpose of this code is to get across the basic working principle of edge detection. You can use it in your game, but expect performance problems.