New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using triangles to replace line. #47

geekplux opened this Issue Aug 13, 2017 · 1 comment


None yet
1 participant

geekplux commented Aug 13, 2017

gl.lineWidth() has no effect in common modern browsers. The corresponding Chromium bug and Firefox bug are closed as Won't Fix and the WebGL specification now defines that gl.lineWidth() does not change the line width anymore. If you need lines of any width other than 1px, consider drawing a narrow strip of triangles.

so, we have to simulating the line width by creating triangles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment