mattdesl

mattdesl/webgl-lines

some interactive content for a blog post

JavaScript
436
39
MIT License

This project is a collection of interactive WebGL demos showcasing different techniques for rendering lines, such as using `gl.LINES`, triangulated strokes, vertex shader expansion, and screen space projection. It’s designed for developers and graphics enthusiasts interested in learning about the challenges and solutions for drawing lines in WebGL.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of mattdesl/webgl-lines

Account's avatar
grabs a new 2d canvas context
Account's avatar
adaptive and scalable 2D bezier curves
Account's avatar
implements arcTo with generic 2D arrays
Account's avatar
Quickly pack a nested 2D array into a typed array – useful for flattening point data into a WebGL-friendly format
Account's avatar
The Stanford bunny
Account's avatar
Small module for fitting a canvas element within the bounds of its parent.
Account's avatar
Clamp a value between two other values
Account's avatar
avoid string concats when making rgba() colors
Account's avatar
Add, change, remove DOM classes
Account's avatar
modern domready
Account's avatar
Return a data type from a string representing the type
Account's avatar
triangulates a 2D polyline into a stroke
Account's avatar
prettifies ndjson from wzrd and similar tools
Account's avatar
generates a basic shader with vertex attributes
Account's avatar
WebGL buffer wrapper
Account's avatar
A flexible wrapper for gl-vao and gl-buffer that you can use to set up renderable WebGL geometries from a variety of different formats.
Account's avatar
gl-matrix's mat4, split into smaller pieces
Account's avatar
Core implementation of gl-shader without parser dependencies
Account's avatar
Vertex array object wrapper/shim for WebGL
Account's avatar
gl-matrix's vec3, split into smaller pieces
Account's avatar
Convert a mesh index for drawing wireframes
Account's avatar
A node.js-style module system for GLSL!
Account's avatar
A markdown parser built for speed
Account's avatar
gets miter normals for a 2D polyline
Account's avatar
standalone function to premultiply RGB by alpha channel
Account's avatar
Quantizes vertices to any bit precision
Account's avatar
a minimal requestAnimationFrame render loop
Account's avatar
random float between a range
Account's avatar
Rescales vertices to the dimensions of a target bounding box
Account's avatar
The Utah Teapot
Account's avatar
simplified touch/mouse events for flick and swipe
Account's avatar
A grab bag of vector utility functions for 2D and 3D vectors that operate on plain arrays
Account's avatar
Computes the bounding box of a set of vertices
Account's avatar
gets a WebGLRenderingContext
Account's avatar
extend like a boss
Account's avatar
Babel browserify transform
Account's avatar
browserify fs.readFileSync() static asset inliner
Account's avatar
browser-side require() the node way
Account's avatar
a browserify server for rapid prototyping
Account's avatar
factor browser-pack bundles into common shared bundles
Account's avatar
CLI to open a URI or path
Account's avatar
Transform stream for UglifyJS
Account's avatar
watch mode for browserify builds

Top contributors

mattdesl's profile
mattdesl
30 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet