As far as I know, OpenGL has no possibilities to vary linewidth via vertex shader, as points do (PSIZE register).
But sometimes this option may be very helpful.
Don’t you know, are there some extensions on this?
Cause if no, I will use quads instead, but it would be twice harder for GPU in bandwidth and processing time cost, as if lines were suported in such a manner.
Thank you!
By the way, is it true, that:
“… many folks have found that on the average board you can win a ton by moving from GL_POINTS to a point-sprite. GL points and lines are simply inefficient on the average consumer system.” © somebody on experts-exchange forum.
I ask it, because in my snow modulation I use simple points for farthest snowflakes, and I didn’t try to move it on point sprites. So I didn’t test points->point_sprites migration myself, and if somebody did it, would be great to hear his advice.
Thank you again.