Mesh Distance Field of plane object?

Hey guys… is it possible to have information of a mesh on the flat part of a mesh? or is it possible to “expand” this info to use it on the material editor?
Currently i’m doing shore detection for a shader, but a lot of assets are planes (sprites and so)…