mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 14:19:30 -07:00
Testing hot-swapping renderers, which requires destroying and rebuilding the canvas after all. Fixed a few other related bugs and moved the imports into "bundle-contents.js".
This commit is contained in:
8
js/bundle-contents.js
Normal file
8
js/bundle-contents.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Matrix } from "./Matrix";
|
||||
import inclusions from "./inclusions";
|
||||
import * as reglRenderer from "./regl/main";
|
||||
import * as webgpuRenderer from "./webgpu/main";
|
||||
globalThis.inclusions = inclusions;
|
||||
globalThis.reglRenderer = reglRenderer;
|
||||
globalThis.webgpuRenderer = webgpuRenderer;
|
||||
globalThis.Matrix = Matrix;
|
||||
Reference in New Issue
Block a user