Add a border to a procedural mesh

fresnel and opacity in your mesh material.
or a post-process sobel edge that relies on custom depth