fix progress, disable opacity
This commit is contained in:
parent
3fd4193676
commit
1a9d27b488
1 changed files with 4 additions and 3 deletions
|
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue