reconcile new three modules, create a bundle

This commit is contained in:
Stewart Allen 2024-06-29 12:48:51 -04:00
commit 9adfe33cfb
19 changed files with 82 additions and 60 deletions

View file

@ -3,11 +3,14 @@
"use strict";
// dep: ext.three
// dep: ext.three-bgu
// dep: ext.three-svg
// dep: ext.three-bvh
gapp.register("add.three", [], (root, exports) => {
const { THREE, SVGLoader, BufferGeometryUtils } = ThreeBundle;
root.THREE = THREE;
THREE.BufferGeometryUtils = BufferGeometryUtils;
THREE.SVGLoader = SVGLoader.SVGLoader;
let MP = THREE.Mesh.prototype,
XP = THREE.Box3.prototype,
BP = THREE.BufferGeometry.prototype;