How to change line width in Shader

I’ve read these documents, but I didn’t find the solution is related to shader. To be more specific, I need to appoint different width for multiple lines and merge them as one to improve the performance. I guess ShaderMaterial can help me on it. Line2 did have effective lineWidth, but I don’t know how to merge them together as one.