change shadow z look below to value less than rough flat offset
This commit is contained in:
parent
d5b6d4c080
commit
56b793bacb
2 changed files with 3 additions and 2 deletions
|
|
@ -865,7 +865,7 @@ class Widget {
|
|||
// find closest shadow above and use to speed up delta shadow gen
|
||||
let zover = Object.keys(shadows).map(v => parseFloat(v)).filter(v => v > z);
|
||||
let minZabove = Math.min(Infinity, ...zover);
|
||||
let shadow = this.#computeShadowAt(z - 0.01, minZabove);
|
||||
let shadow = this.#computeShadowAt(z - 0.005, minZabove);
|
||||
if (minZabove < Infinity) {
|
||||
shadow = POLY.union([...shadow, ...shadows[minZabove]], 0.001, true, { wasm: false });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ function initPathMesh() {
|
|||
lines = new THREE.LineSegments(geo, mat),
|
||||
vec = new THREE.Vector3(0,0,0),
|
||||
ang = new THREE.Vector3(1,0,0),
|
||||
show = api.local.get('cam.anim.path') ?? true;
|
||||
show = (api.local.get('cam.anim.path') ?? 'true') == 'true';
|
||||
geo.setAttribute('position', new THREE.BufferAttribute(pos, 3));
|
||||
let track = lineTracker = {
|
||||
xro(p) {
|
||||
|
|
@ -185,6 +185,7 @@ function initPathMesh() {
|
|||
lines.visible = bool;
|
||||
}
|
||||
}
|
||||
track.show(show);
|
||||
space.world.add(lines);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue