Relative Content

Tag Archive for graphicsfrontendglslshaderwebgl

WebGL line using TRIANGLE_STRIPs are being contoured at the end

WebGL offers gl_LINES as a way to create lines, but you cannot control its thickness. Therefore, I made a shader and some js functionality to create lines using gl_TRIANGLE_STRIPs. It does make the line thicker, but for some odd reason it contours at the end to give this weird, hair-like shape.