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
// 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 | |
}, |
/** | |
* 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 { |
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