Skip to content

Instantly share code, notes, and snippets.

@Bjvanminnen
Bjvanminnen / blending.js
Created September 26, 2018 03:20
Tips for blending with regl
// I always seem to spend forever trying to find an old project where I've done this before, so
// here I create a gist
const regl = createREGL({canvas, attributes: {preserveDrawingBuffer: true}});
const renderer = regl({
// ...
depth: {
enable: false
},
@Bjvanminnen
Bjvanminnen / logger.js
Last active May 15, 2018 17:38
Log all WebGL calls
/**
* Usage:
* // start to log the name/arguments for all function calls on context
* const logger = new WebGLLogger(webglContext);
*
* // stop logging, restoring the originals
* logger.disable();
*/
class WebGLLogger {
@Bjvanminnen
Bjvanminnen / instructions.md
Last active January 8, 2023 15:52
How to use glslify with create-react-app

Create your app

create-react-app my-app
cd my-app

Eject it, so that we can modify webpack config

npm run eject
y # when prompted