I want to draw line using OpenGL instanced rendering.
Each line segment is an instance.
But OpenGL draws each segment as separated mesh, drawed using [glDrawArrays].
Because of this all segments are layered on top of each other.
How i can combine calls of GL functions ( glBlendFunc[Separate], glBlendEquation[Separate] ) to draw line segments on one alpha layer ( as one big mesh ) ?
screenshot : Pin on questions