Shore detection for water surfaces

How would distance field work on mobile VR with ES2 renderer ?