Unity, c# This funcion gives the distance to a bezier curve in 3d. It returns a vector2 (distance to curve, distance along curve). This is not a shader SDF. I use it for doing physics calculations on the CPU in Unity.
//Adapted from iq //https://www.shadertoy.com/view/ldj3Wh