Hi There Blender Peeps and Lovers... I need some help.
I tried to draw Quadratic Bezier curve SDF using Blender's node editor. In order to complete this challenge, I referred to the code from Inigo Quilez, and tried to implement it in Blender with nodes, but as you can see, Although the final effect showed some rudiments of curves(The red dot is the control point), it failed overall.
I have checked the nodes several times and confirmed that the failure should not be caused by the connection error of the node. Finally, I compared the output of each line of code in the shader of Godot one by one, and found that the problem may be the square root operation, negative values in Blender The square root result is 0, but Godot is not. It seems that Godot's shader can perform operations on complex numbers, but I'm not sure.
Besides, I don't understand the mathematical principles of Quadratic Bezier curve SDF, but I don’t want to give up. Is it possible to calculate complex numbers using Blender shader or is there another way to implement Quadratic Bezier curve SDF?