Need help with a sobel edge post process effect :(

This should help to start and understand the concept behind the Custom Node. I also found the forums have numerous posts that will teach you ways how to access the scene texture from hlsl code, it is quite easy and leveraged to a single function call (SceneTextureLookup) which is cool.