How Do I Fix the Rounded Edges of My Masked Meshes ("Distance to Nearest Surface" problem)

I’m playing with two meshes masking or “cutting out” (i.e. dissolving) another mesh.

As you can see from the “_result” image, it’s working pretty well.

But how do I fix the edges of the masks generated by my two meshes?

The edges are rounded instead of identical to the shape and dimensions of each masking mesh.

– notes

I’ve included my graph for the “grey” wall material (“_code” image below).

I’ve also applied a simple wireframe texture to the cone and cube, so you can see the generated masks and they’re default rounded corners.

– images


Thank you so much for your help.

It uses a distance field approximation of a mesh so it’s not going to be a 1:1 copy.