Some interactive content for a blog post.
Demos:
- native - rendering with
gl.LINES
- triangles - triangulated stroke
- expanded - expanded in a vertex shader
- projected - screen space projected lines
First you need to git clone and install dependencies:
git clone https://github.com/mattdesl/webgl-lines.git
cd webgl-lines
npm install
To start developing a demo, use one of the following:
npm run native
npm run triangles
npm run expanded
npm run projected
And open localhost:9966/[demo]
, for example localhost:9966/native
.
For the bundle splitting and uglify step, use npm run build-all
.
MIT, see LICENSE.md for details.