Looking for a basic Sobel Edge Post Process Material?

When I try to use this I get a missing material error as well as a Node if If input B must be of type float within the original material.