mirror of
https://github.com/storytold/spark.git
synced 2026-10-22 08:16:06 +00:00
Bump dist build
This commit is contained in:
Vendored
+11
-11
@@ -7745,15 +7745,15 @@ const jh = new Float32Array([
|
||||
// The method cannot be private because then SparkRenderer would
|
||||
// not be able to call it.
|
||||
autoPoll({ accumulator: A }) {
|
||||
var i, r, a, o;
|
||||
var i, r, a;
|
||||
this.camera && (this.camera.updateMatrixWorld(), this.viewToWorld = this.camera.matrixWorld.clone());
|
||||
let e = !1, s = !1;
|
||||
if (!this.display)
|
||||
e = !0;
|
||||
else if (A) {
|
||||
e = !0;
|
||||
const { mappingVersion: g } = this.display.accumulator;
|
||||
A.mappingVersion === g && (this.spark.releaseAccumulator(this.display.accumulator), this.display.accumulator = A, s = !0);
|
||||
const { mappingVersion: o } = this.display.accumulator;
|
||||
A.mappingVersion === o && (A.refCount += 1, this.spark.releaseAccumulator(this.display.accumulator), this.display.accumulator = A, this.display.viewToWorld.copy(this.viewToWorld), s = !0, this.spark.viewpoint === this && this.spark.prepareViewpoint(this));
|
||||
}
|
||||
const n = ((i = this.sorting) == null ? void 0 : i.viewToWorld) ?? ((r = this.display) == null ? void 0 : r.viewToWorld);
|
||||
n && !ge({
|
||||
@@ -7766,7 +7766,7 @@ const jh = new Float32Array([
|
||||
// For depth sort, small rotations can change sort order a lot, so
|
||||
// update sort for even small rotations.
|
||||
minCoorient: this.sortCoorient ?? this.sortRadial ? 0.99 : 0.999
|
||||
}) && (e = !0), e && (A && (A.refCount += 1), A && ((a = this.pending) != null && a.accumulator) && this.pending.accumulator !== ((o = this.display) == null ? void 0 : o.accumulator) && this.spark.releaseAccumulator(this.pending.accumulator), this.pending = { accumulator: A, viewToWorld: this.viewToWorld, displayed: s }, this.driveSort());
|
||||
}) && (e = !0), e && (A && (A.refCount += 1), (a = this.pending) != null && a.accumulator && this.spark.releaseAccumulator(this.pending.accumulator), this.pending = { accumulator: A, viewToWorld: this.viewToWorld, displayed: s }, this.driveSort());
|
||||
}
|
||||
async driveSort() {
|
||||
var A;
|
||||
@@ -7774,10 +7774,10 @@ const jh = new Float32Array([
|
||||
if (this.sorting || !this.pending)
|
||||
return;
|
||||
const { viewToWorld: e, displayed: s } = this.pending;
|
||||
let n = this.pending.accumulator ?? ((A = this.display) == null ? void 0 : A.accumulator);
|
||||
if (n || (n = this.spark.active, n.refCount += 1), this.pending = null, !n)
|
||||
let n = this.pending.accumulator;
|
||||
if (n || (n = ((A = this.display) == null ? void 0 : A.accumulator) ?? this.spark.active, n.refCount += 1), this.pending = null, !n)
|
||||
throw new Error("No accumulator to sort");
|
||||
this.sorting = { viewToWorld: e }, await this.sortUpdate({ accumulator: n, viewToWorld: e, displayed: s }), this.sorting = null;
|
||||
this.sorting = { viewToWorld: e }, await this.sortUpdate({ accumulator: n, viewToWorld: e, displayed: s }), this.sorting = null, this.spark.releaseAccumulator(n);
|
||||
}
|
||||
}
|
||||
async sortUpdate({
|
||||
@@ -7849,13 +7849,13 @@ const jh = new Float32Array([
|
||||
displayed: i = !1
|
||||
}) {
|
||||
if (!this.display)
|
||||
this.display = {
|
||||
A.refCount += 1, this.display = {
|
||||
accumulator: A,
|
||||
viewToWorld: e,
|
||||
geometry: new Pe(s, n)
|
||||
};
|
||||
else {
|
||||
!i && A !== this.display.accumulator && (this.spark.releaseAccumulator(this.display.accumulator), this.display.accumulator = A), this.display.viewToWorld = e;
|
||||
!i && A !== this.display.accumulator && (A.refCount += 1, this.spark.releaseAccumulator(this.display.accumulator), this.display.accumulator = A), this.display.viewToWorld = e;
|
||||
const r = this.display.geometry.ordering;
|
||||
r.length === s.length ? this.display.geometry.update(s, n) : (this.display.geometry.dispose(), this.display.geometry = new Pe(s, n)), this.orderingFreelist.free(r);
|
||||
}
|
||||
@@ -8642,7 +8642,7 @@ const ys = 5, oA = class oA extends h.Mesh {
|
||||
}), { gsplat: a };
|
||||
}
|
||||
);
|
||||
this.modifier = new mh(r), this.premultipliedAlpha = n, this.autoUpdate = A.autoUpdate ?? !0, this.preUpdate = A.preUpdate ?? !1, this.needsUpdate = !1, this.originDistance = A.originDistance ?? 1, this.maxStdDev = A.maxStdDev ?? Math.sqrt(8), this.minPixelRadius = A.minPixelRadius ?? 0, this.maxPixelRadius = A.maxPixelRadius ?? 512, this.minAlpha = A.minAlpha ?? 0.5 * (1 / 255), this.enable2DGS = A.enable2DGS ?? !1, this.preBlurAmount = A.preBlurAmount ?? 0, this.blurAmount = A.blurAmount ?? 0.3, this.focalDistance = A.focalDistance ?? 0, this.apertureAngle = A.apertureAngle ?? 0, this.falloff = A.falloff ?? 1, this.clipXY = A.clipXY ?? 1.4, this.focalAdjustment = A.focalAdjustment ?? 1, this.splatEncoding = A.splatEncoding ?? { ...de }, this.active = new ke(), this.accumulatorCount = 1, this.freeAccumulators = [];
|
||||
this.modifier = new mh(r), this.premultipliedAlpha = n, this.autoUpdate = A.autoUpdate ?? !0, this.preUpdate = A.preUpdate ?? !1, this.needsUpdate = !1, this.originDistance = A.originDistance ?? 1, this.maxStdDev = A.maxStdDev ?? Math.sqrt(8), this.minPixelRadius = A.minPixelRadius ?? 0, this.maxPixelRadius = A.maxPixelRadius ?? 512, this.minAlpha = A.minAlpha ?? 0.5 * (1 / 255), this.enable2DGS = A.enable2DGS ?? !1, this.preBlurAmount = A.preBlurAmount ?? 0, this.blurAmount = A.blurAmount ?? 0.3, this.focalDistance = A.focalDistance ?? 0, this.apertureAngle = A.apertureAngle ?? 0, this.falloff = A.falloff ?? 1, this.clipXY = A.clipXY ?? 1.4, this.focalAdjustment = A.focalAdjustment ?? 1, this.splatEncoding = A.splatEncoding ?? { ...de }, this.active = new ke(), this.active.refCount = 1, this.accumulatorCount = 1, this.freeAccumulators = [];
|
||||
for (let a = 0; a < 1; ++a)
|
||||
this.freeAccumulators.push(new ke()), this.accumulatorCount += 1;
|
||||
this.defaultView = new Be({
|
||||
@@ -8863,7 +8863,7 @@ const ys = 5, oA = class oA extends h.Mesh {
|
||||
throw new Error("Unreachable");
|
||||
const B = !ge({
|
||||
matrix1: e,
|
||||
matrix2: this.active.toWorld,
|
||||
matrix2: I.toWorld,
|
||||
maxDistance: 1e-5,
|
||||
minCoorient: 0.99999
|
||||
}), E = o.map((x, w) => {
|
||||
|
||||
Reference in New Issue
Block a user