fix progress, disable opacity

This commit is contained in:
Stewart Allen 2022-10-27 20:25:18 -04:00
commit 1a9d27b488

View file

@ -107,8 +107,8 @@ kiri.load(() => {
geo.setIndex(new THREE.BufferAttribute(ind, 1)); geo.setIndex(new THREE.BufferAttribute(ind, 1));
const mat = new THREE.MeshMatcapMaterial({ const mat = new THREE.MeshMatcapMaterial({
flatShading: true, flatShading: true,
transparent: true, transparent: false,
opacity: 0.9, opacity: 1,
color: 0x888888, color: 0x888888,
side: THREE.DoubleSide side: THREE.DoubleSide
}); });
@ -284,7 +284,7 @@ class Stock {
}); });
let sub = Date.now(); let sub = Date.now();
updates.push(this); updates.push(this);
console.log({ if (false) console.log({
update: this.id, update: this.id,
time: sub - start, time: sub - start,
subs, subs,
@ -558,6 +558,7 @@ kiri.load(() => {
for (let slice of updated) { for (let slice of updated) {
slice.send(send); slice.send(send);
} }
send.data({ progress: pathIndex / path.length });
updates++; updates++;
} }