In VisPy with gloo backend, The with of lines drawn via 3D coordinates can modified through
GL.glLineWidth(max(width1, 1.))
at once, altogether.
Is there any way to give the widths/thickness of line using array like colors? Should I modify gloo or can set the Line_Width with some command?
VERTEX_SHADER = """
varying vec4 v_color;
void main(void) {
gl_Position = $transform($to_vec4($position));
v_color = $color;
}
"""
# gl_LineWidth = v_color;
# varying vec4 v_color;
FRAGMENT_SHADER = """
varying vec4 v_color;
void main() {
gl_FragColor = v_color;
}
"""