How can I control the line width in the WebGL2 Babylon context?
I have a custom mesh made of primitive material types LineListDrawMode and LineStripDrawMode. Essentially, I looking for some API that sets glLineWidth internally.
I think we don’t support glLineWidth
because it is not supported by most of the implementations.
See WebGLRenderingContext: lineWidth() method - Web APIs | MDN
You may want to use a tube or a greased line if you want to support thick lines.
1 Like
Thanks @Evgeni_Popov for the quick response. I have used See WebGLRenderingContext: lineWidth() method - Web APIs | MDN, and it worked for me.
I will check for the other solution as well.
1 Like