I’m trying to make a custom Post Process effect that effectively finds the outline of everything in the scene based on the zbuffer of the sceneTexture.
As of right now I’ve made no progress. I’m looking to use differential edge detection to find the edges of everything. However I don’t know the math required to accomplish this. The basic process I do know involves taking one image, layering a blurred version of that image on top of it, then using something to the Difference filter in Photoshop, and the result will be the edges.
Here is an example of the effect I’m going for:
I’ve already tried using other techniques, like a reverse phong rimlight, but it was far too jagged for my taste. Any suggestions are welcome and if I didn’t explain anything clear enough please let me know.
Thanks!