get meta working, if limping along
This commit is contained in:
parent
fec728562e
commit
5d2ec18a95
4 changed files with 5 additions and 14 deletions
9
app.js
9
app.js
|
|
@ -253,7 +253,7 @@ const script = {
|
||||||
"kiri/export",
|
"kiri/export",
|
||||||
"@devices"
|
"@devices"
|
||||||
].map(p => p.charAt(0) !== '@' ? `src/${p}.js` : p),
|
].map(p => p.charAt(0) !== '@' ? `src/${p}.js` : p),
|
||||||
work : [
|
worker : [
|
||||||
"kiri",
|
"kiri",
|
||||||
"ext/three",
|
"ext/three",
|
||||||
"ext/pngjs",
|
"ext/pngjs",
|
||||||
|
|
@ -282,11 +282,7 @@ const script = {
|
||||||
"mode/laser/driver",
|
"mode/laser/driver",
|
||||||
"kiri/widget",
|
"kiri/widget",
|
||||||
"kiri/print",
|
"kiri/print",
|
||||||
"kiri/codec"
|
"kiri/codec",
|
||||||
].map(p => `src/${p}.js`),
|
|
||||||
worker : [
|
|
||||||
"kiri",
|
|
||||||
"license",
|
|
||||||
"kiri/worker"
|
"kiri/worker"
|
||||||
].map(p => `src/${p}.js`),
|
].map(p => `src/${p}.js`),
|
||||||
meta : [
|
meta : [
|
||||||
|
|
@ -607,7 +603,6 @@ function prepareScripts() {
|
||||||
synth.devices = `devices = ${JSON.stringify(devs)};`;
|
synth.devices = `devices = ${JSON.stringify(devs)};`;
|
||||||
code.meta = concatCode(script.meta);
|
code.meta = concatCode(script.meta);
|
||||||
code.kiri = concatCode(script.kiri);
|
code.kiri = concatCode(script.kiri);
|
||||||
code.work = concatCode(script.work);
|
|
||||||
code.worker = concatCode(script.worker);
|
code.worker = concatCode(script.worker);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
importScripts(`/code/work.js${location.search}`);
|
|
||||||
|
|
||||||
const base = self.base,
|
const base = self.base,
|
||||||
util = base.util,
|
util = base.util,
|
||||||
time = util.time,
|
time = util.time,
|
||||||
|
|
|
||||||
|
|
@ -22,12 +22,9 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
let gs_meta = exports;
|
|
||||||
let gs_meta_debug = false; // 'line', 'poly', or 'cut'
|
|
||||||
|
|
||||||
THREE.Material.prototype.motoSetup = function() {
|
THREE.Material.prototype.motoSetup = function() {
|
||||||
this.fog = false;
|
this.fog = false;
|
||||||
this.transparent = gs_meta_debug ? true : false;
|
this.transparent = false;
|
||||||
|
|
||||||
let hidden = this.clone();
|
let hidden = this.clone();
|
||||||
hidden.visible = false;
|
hidden.visible = false;
|
||||||
|
|
@ -271,7 +268,7 @@ THREE.Face3.prototype.mVisible = function(show) {
|
||||||
let debugGroup = new THREE.Group(),
|
let debugGroup = new THREE.Group(),
|
||||||
debugAdded = false,
|
debugAdded = false,
|
||||||
debugLayer = new Layer(debugGroup),
|
debugLayer = new Layer(debugGroup),
|
||||||
debugExport = gs_meta_debug;
|
debugExport = false;
|
||||||
|
|
||||||
/** ******************************************************************
|
/** ******************************************************************
|
||||||
* LETS_GET_THIS_PARTY_STARTED()
|
* LETS_GET_THIS_PARTY_STARTED()
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
<link rel="icon" href="/meta/favicon.ico">
|
<link rel="icon" href="/meta/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="/meta/favicon-mobile.png">
|
<link rel="apple-touch-icon" href="/meta/favicon-mobile.png">
|
||||||
<link rel="stylesheet" type="text/css" href="/meta/index.css">
|
<link rel="stylesheet" type="text/css" href="/meta/index.css">
|
||||||
|
<script>module={};kiri={};</script>
|
||||||
<script src="/code/meta.js"></script>
|
<script src="/code/meta.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue