webgl-lines
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
running demos
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
.
production
For the bundle splitting and uglify step, use npm run build-all
.
License
MIT, see LICENSE.md for details.