godot – How to create a seamlessly wrapping shader material?

How do you create a shader that seamlessly wraps around the whole object, so that there are no “Stitches” at any edges/corners?

Take this screenshot for example:

enter image description here

On the left side, the material seamlessly wraps around the edge. On the right side, it doens’t. Now the question is, how can you make the material seamlessly wrap around all of the geometry’s edges? What needs to be done?
How would you tackle this in either Godot’s VisualShader editor or in Unity’s Shader Graph?