This shader outlines pixels that are of different color. You can find Koobyky game below that uses advanced version of this shader.