but i found a better way i think to generate a distance field

see my shader https://www.shadertoy.com/view/MsjyWR

i used this df rendered in a framebuffer to my need.

I just put the array of points and the count as uniforms in the shader.

this work with concave and convex shape.

you did not have experimented solution un pure graphic way like glsl ?

]]>In any case, thank you very much for the excellent writeup, AND for open-sourcing the results. Again, I can’t imagine ever needing to use this, but I appreciate that you took the time to share the process, the algorithm, and the code.

]]>