How to display only one surface, a surface generated from any two points
kt7456 opened this issue · comments
I don't remember (but based on OpenGL/Vulkan/DX12), I don't think WebGL supports "thick lines". So the GL_LINE
primitive will just be a single pixel wide line, which won't look like the pictures you have here.
To draw a thick line or arrow like this you have to make a big rectangle (2 triangles) that cover the region you want the line to be in. Then you can draw some texture on top of it with your arrow (but it might look pixelated or stretched), or evaluate some function defining which pixels are in the arrow and not, coloring those in the arrow and discarding those that are not to get a higher quality result.