Foliage painting cursor effect

Hi,

I’d like to create an ingame cursor like the foliage paint tool, with the outline that follows the terrain and even objects.

How would one create that, is this created with a decal of some sort or something with distance fields?

Thanks for any help !

4539faa385563e446313c2620b3f1e746d23ef2d.jpeg

It looks like simple one minus of depth fade

Still have to thank you redbox! That got me going.
Together with a spheremask updated trough a parameter collection to get the inside shading. And a fresnel for the dome edge…
I’d like to have a bit more control over the depth fade though, maybe i have to play around with it a bit more.
I’d like to have a small contour line, now it often gets thicker depending on the angle of what is behind i think.