Using texture for line

I’m trying to develop a graphic editor similar to AutoCAD. how can I add texture to a line to draw two solid ones for example. Now I’m drawing a line and putting a mesh with a texture on top of it, but the problem is that with each new line, the textures are redrawn in the previous ones. Maybe it’s possible to immediately load textures into the line?

Can you post some screenshots? I couldn’t understand what your problem is. Sometimes it’s possible to cause wrong state within the renderer and have the wrong texture bound between draw calls.

you can try meshline, threes line2 imo can’t do it

https://codesandbox.io/p/sandbox/lanyard-rope-physics-2vsq8k

1 Like