Question about Scene Depth

I was looking into this initially instead of scene depth, but I wasn’t sure how something like a box trace could translate hits to distance field info, short of spawning custom shaped translucent meshes with no collisions along hit volumes using the volume bounds as mesh bounds, and just clicking a button to build those meshes or having them built on beginplay or something, but I had thought that’d be too complex/expensive.