Implement batching for Line chart material
This allows line chart segments and the respective material to be batched, by sending per-segment data as vertex attributes rather than uniforms.
Unfortunately, OpenGL 2.1/GLSL 1.10 doesn't support array vertex attributes, so instead this emulates an array by simply defining a bunch of vertex attributes and manually converting it to an output array.