I would like to highlight edges based solely on z-buffer discontinuities. I can imagine this as an image posprocessing step after the frame and z-buffers are complete.
I have two questions:
1) What is a reasonable filter to use to detect edge pixels?
2) Can this be implemented in a shader? One of my questions here is whether I can access neighboring pixel information in the fragment shader.