reconcile new three modules, create a bundle
This commit is contained in:
parent
e26e57e193
commit
9adfe33cfb
19 changed files with 82 additions and 60 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue