ARTICLE AD BOX
I need to display many (a lot) 3d trajectories with modernGL.
For now, I chain the trajectories and I create two arrays only (one for all the vertices and one for their colors) that I pass as params of context.vertex_array. See the code below:
To avoid "color gradient lines" in-between each trajectory, I double the last and the first point of each trajectory, and I give to these new points a transparent color. I also fight with the dedicated shader to give these points a far z-depth.
I wonder if another solution exists, more efficient, without fps loss ? For exemple providing one vertex_array and several index buffers ?
Thanks in advance for your answers !!
