Bump dist build

This commit is contained in:
sparkjsdev[bot]
2025-09-15 21:48:23 +00:00
parent 3e9ee5f505
commit 3daecd37c7
9 changed files with 78 additions and 42 deletions
-1
View File
@@ -1 +0,0 @@
243b8b55619002ab47dba180b9fdc4aac9d0bd52
+28 -13
View File
@@ -10385,7 +10385,11 @@ const _SparkRenderer = class _SparkRenderer extends THREE__namespace.Mesh {
this.lastUpdateTime = null;
this.defaultCameras = [];
this.lastStochastic = null;
this.pendingUpdate = null;
this.pendingUpdate = {
scene: null,
originToWorld: new THREE__namespace.Matrix4(),
timeoutId: -1
};
this.envViewpoint = null;
this.frustumCulled = false;
this.renderer = options.renderer;
@@ -10675,21 +10679,32 @@ const _SparkRenderer = class _SparkRenderer extends THREE__namespace.Mesh {
scene,
viewToWorld
}) {
const originToWorld = this.matrixWorld.clone();
const originToWorld = this.matrixWorld;
if (this.preUpdate) {
this.updateInternal({ scene, originToWorld, viewToWorld });
} else {
this.pendingUpdate = {
this.updateInternal({
scene,
originToWorld
};
setTimeout(() => {
if (this.pendingUpdate) {
originToWorld: originToWorld.clone(),
viewToWorld
});
} else {
this.pendingUpdate.scene = scene;
this.pendingUpdate.originToWorld.copy(originToWorld);
if (this.pendingUpdate.timeoutId === -1) {
this.pendingUpdate.timeoutId = setTimeout(() => {
const { scene: scene2, originToWorld: originToWorld2 } = this.pendingUpdate;
this.pendingUpdate = null;
this.updateInternal({ scene: scene2, originToWorld: originToWorld2, viewToWorld });
}
}, 1);
this.pendingUpdate.scene = null;
this.pendingUpdate.timeoutId = -1;
const updated = this.updateInternal({
scene: scene2,
originToWorld: originToWorld2,
viewToWorld
});
if (updated) {
const gl = this.renderer.getContext();
gl.flush();
}
}, 1);
}
}
}
updateInternal({
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+28 -13
View File
@@ -10366,7 +10366,11 @@ const _SparkRenderer = class _SparkRenderer extends THREE.Mesh {
this.lastUpdateTime = null;
this.defaultCameras = [];
this.lastStochastic = null;
this.pendingUpdate = null;
this.pendingUpdate = {
scene: null,
originToWorld: new THREE.Matrix4(),
timeoutId: -1
};
this.envViewpoint = null;
this.frustumCulled = false;
this.renderer = options.renderer;
@@ -10656,21 +10660,32 @@ const _SparkRenderer = class _SparkRenderer extends THREE.Mesh {
scene,
viewToWorld
}) {
const originToWorld = this.matrixWorld.clone();
const originToWorld = this.matrixWorld;
if (this.preUpdate) {
this.updateInternal({ scene, originToWorld, viewToWorld });
} else {
this.pendingUpdate = {
this.updateInternal({
scene,
originToWorld
};
setTimeout(() => {
if (this.pendingUpdate) {
originToWorld: originToWorld.clone(),
viewToWorld
});
} else {
this.pendingUpdate.scene = scene;
this.pendingUpdate.originToWorld.copy(originToWorld);
if (this.pendingUpdate.timeoutId === -1) {
this.pendingUpdate.timeoutId = setTimeout(() => {
const { scene: scene2, originToWorld: originToWorld2 } = this.pendingUpdate;
this.pendingUpdate = null;
this.updateInternal({ scene: scene2, originToWorld: originToWorld2, viewToWorld });
}
}, 1);
this.pendingUpdate.scene = null;
this.pendingUpdate.timeoutId = -1;
const updated = this.updateInternal({
scene: scene2,
originToWorld: originToWorld2,
viewToWorld
});
if (updated) {
const gl = this.renderer.getContext();
gl.flush();
}
}, 1);
}
}
}
updateInternal({
+1 -1
View File
File diff suppressed because one or more lines are too long
+17 -10
View File
@@ -8598,7 +8598,11 @@ const oA = class oA extends I.Mesh {
depthWrite: !1,
side: I.DoubleSide
});
super(ws, i), this.splatTexture = null, this.autoViewpoints = [], this.rotateToAccumulator = new Tt({ value: new I.Quaternion() }), this.translateToAccumulator = new Ft({ value: new I.Vector3() }), this.lastFrame = -1, this.lastUpdateTime = null, this.defaultCameras = [], this.lastStochastic = null, this.pendingUpdate = null, this.envViewpoint = null, this.frustumCulled = !1, this.renderer = A.renderer, this.material = i, this.uniforms = e;
super(ws, i), this.splatTexture = null, this.autoViewpoints = [], this.rotateToAccumulator = new Tt({ value: new I.Quaternion() }), this.translateToAccumulator = new Ft({ value: new I.Vector3() }), this.lastFrame = -1, this.lastUpdateTime = null, this.defaultCameras = [], this.lastStochastic = null, this.pendingUpdate = {
scene: null,
originToWorld: new I.Matrix4(),
timeoutId: -1
}, this.envViewpoint = null, this.frustumCulled = !1, this.renderer = A.renderer, this.material = i, this.uniforms = e;
const r = vA(
{ gsplat: AA },
{ gsplat: AA },
@@ -8776,16 +8780,19 @@ const oA = class oA extends I.Mesh {
scene: A,
viewToWorld: e
}) {
const s = this.matrixWorld.clone();
this.preUpdate ? this.updateInternal({ scene: A, originToWorld: s, viewToWorld: e }) : (this.pendingUpdate = {
const s = this.matrixWorld;
this.preUpdate ? this.updateInternal({
scene: A,
originToWorld: s
}, setTimeout(() => {
if (this.pendingUpdate) {
const { scene: n, originToWorld: i } = this.pendingUpdate;
this.pendingUpdate = null, this.updateInternal({ scene: n, originToWorld: i, viewToWorld: e });
}
}, 1));
originToWorld: s.clone(),
viewToWorld: e
}) : (this.pendingUpdate.scene = A, this.pendingUpdate.originToWorld.copy(s), this.pendingUpdate.timeoutId === -1 && (this.pendingUpdate.timeoutId = setTimeout(() => {
const { scene: n, originToWorld: i } = this.pendingUpdate;
this.pendingUpdate.scene = null, this.pendingUpdate.timeoutId = -1, this.updateInternal({
scene: n,
originToWorld: i,
viewToWorld: e
}) && this.renderer.getContext().flush();
}, 1)));
}
updateInternal({
scene: A,
+1 -1
View File
File diff suppressed because one or more lines are too long