mirror of
https://github.com/storytold/spark.git
synced 2026-10-21 08:06:45 +00:00
Bump dist build
This commit is contained in:
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
243b8b55619002ab47dba180b9fdc4aac9d0bd52
|
|
||||||
Vendored
+28
-13
@@ -10385,7 +10385,11 @@ const _SparkRenderer = class _SparkRenderer extends THREE__namespace.Mesh {
|
|||||||
this.lastUpdateTime = null;
|
this.lastUpdateTime = null;
|
||||||
this.defaultCameras = [];
|
this.defaultCameras = [];
|
||||||
this.lastStochastic = null;
|
this.lastStochastic = null;
|
||||||
this.pendingUpdate = null;
|
this.pendingUpdate = {
|
||||||
|
scene: null,
|
||||||
|
originToWorld: new THREE__namespace.Matrix4(),
|
||||||
|
timeoutId: -1
|
||||||
|
};
|
||||||
this.envViewpoint = null;
|
this.envViewpoint = null;
|
||||||
this.frustumCulled = false;
|
this.frustumCulled = false;
|
||||||
this.renderer = options.renderer;
|
this.renderer = options.renderer;
|
||||||
@@ -10675,21 +10679,32 @@ const _SparkRenderer = class _SparkRenderer extends THREE__namespace.Mesh {
|
|||||||
scene,
|
scene,
|
||||||
viewToWorld
|
viewToWorld
|
||||||
}) {
|
}) {
|
||||||
const originToWorld = this.matrixWorld.clone();
|
const originToWorld = this.matrixWorld;
|
||||||
if (this.preUpdate) {
|
if (this.preUpdate) {
|
||||||
this.updateInternal({ scene, originToWorld, viewToWorld });
|
this.updateInternal({
|
||||||
} else {
|
|
||||||
this.pendingUpdate = {
|
|
||||||
scene,
|
scene,
|
||||||
originToWorld
|
originToWorld: originToWorld.clone(),
|
||||||
};
|
viewToWorld
|
||||||
setTimeout(() => {
|
});
|
||||||
if (this.pendingUpdate) {
|
} 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;
|
const { scene: scene2, originToWorld: originToWorld2 } = this.pendingUpdate;
|
||||||
this.pendingUpdate = null;
|
this.pendingUpdate.scene = null;
|
||||||
this.updateInternal({ scene: scene2, originToWorld: originToWorld2, viewToWorld });
|
this.pendingUpdate.timeoutId = -1;
|
||||||
}
|
const updated = this.updateInternal({
|
||||||
}, 1);
|
scene: scene2,
|
||||||
|
originToWorld: originToWorld2,
|
||||||
|
viewToWorld
|
||||||
|
});
|
||||||
|
if (updated) {
|
||||||
|
const gl = this.renderer.getContext();
|
||||||
|
gl.flush();
|
||||||
|
}
|
||||||
|
}, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateInternal({
|
updateInternal({
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+28
-13
@@ -10366,7 +10366,11 @@ const _SparkRenderer = class _SparkRenderer extends THREE.Mesh {
|
|||||||
this.lastUpdateTime = null;
|
this.lastUpdateTime = null;
|
||||||
this.defaultCameras = [];
|
this.defaultCameras = [];
|
||||||
this.lastStochastic = null;
|
this.lastStochastic = null;
|
||||||
this.pendingUpdate = null;
|
this.pendingUpdate = {
|
||||||
|
scene: null,
|
||||||
|
originToWorld: new THREE.Matrix4(),
|
||||||
|
timeoutId: -1
|
||||||
|
};
|
||||||
this.envViewpoint = null;
|
this.envViewpoint = null;
|
||||||
this.frustumCulled = false;
|
this.frustumCulled = false;
|
||||||
this.renderer = options.renderer;
|
this.renderer = options.renderer;
|
||||||
@@ -10656,21 +10660,32 @@ const _SparkRenderer = class _SparkRenderer extends THREE.Mesh {
|
|||||||
scene,
|
scene,
|
||||||
viewToWorld
|
viewToWorld
|
||||||
}) {
|
}) {
|
||||||
const originToWorld = this.matrixWorld.clone();
|
const originToWorld = this.matrixWorld;
|
||||||
if (this.preUpdate) {
|
if (this.preUpdate) {
|
||||||
this.updateInternal({ scene, originToWorld, viewToWorld });
|
this.updateInternal({
|
||||||
} else {
|
|
||||||
this.pendingUpdate = {
|
|
||||||
scene,
|
scene,
|
||||||
originToWorld
|
originToWorld: originToWorld.clone(),
|
||||||
};
|
viewToWorld
|
||||||
setTimeout(() => {
|
});
|
||||||
if (this.pendingUpdate) {
|
} 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;
|
const { scene: scene2, originToWorld: originToWorld2 } = this.pendingUpdate;
|
||||||
this.pendingUpdate = null;
|
this.pendingUpdate.scene = null;
|
||||||
this.updateInternal({ scene: scene2, originToWorld: originToWorld2, viewToWorld });
|
this.pendingUpdate.timeoutId = -1;
|
||||||
}
|
const updated = this.updateInternal({
|
||||||
}, 1);
|
scene: scene2,
|
||||||
|
originToWorld: originToWorld2,
|
||||||
|
viewToWorld
|
||||||
|
});
|
||||||
|
if (updated) {
|
||||||
|
const gl = this.renderer.getContext();
|
||||||
|
gl.flush();
|
||||||
|
}
|
||||||
|
}, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateInternal({
|
updateInternal({
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+17
-10
@@ -8598,7 +8598,11 @@ const oA = class oA extends I.Mesh {
|
|||||||
depthWrite: !1,
|
depthWrite: !1,
|
||||||
side: I.DoubleSide
|
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(
|
const r = vA(
|
||||||
{ gsplat: AA },
|
{ gsplat: AA },
|
||||||
{ gsplat: AA },
|
{ gsplat: AA },
|
||||||
@@ -8776,16 +8780,19 @@ const oA = class oA extends I.Mesh {
|
|||||||
scene: A,
|
scene: A,
|
||||||
viewToWorld: e
|
viewToWorld: e
|
||||||
}) {
|
}) {
|
||||||
const s = this.matrixWorld.clone();
|
const s = this.matrixWorld;
|
||||||
this.preUpdate ? this.updateInternal({ scene: A, originToWorld: s, viewToWorld: e }) : (this.pendingUpdate = {
|
this.preUpdate ? this.updateInternal({
|
||||||
scene: A,
|
scene: A,
|
||||||
originToWorld: s
|
originToWorld: s.clone(),
|
||||||
}, setTimeout(() => {
|
viewToWorld: e
|
||||||
if (this.pendingUpdate) {
|
}) : (this.pendingUpdate.scene = A, this.pendingUpdate.originToWorld.copy(s), this.pendingUpdate.timeoutId === -1 && (this.pendingUpdate.timeoutId = setTimeout(() => {
|
||||||
const { scene: n, originToWorld: i } = this.pendingUpdate;
|
const { scene: n, originToWorld: i } = this.pendingUpdate;
|
||||||
this.pendingUpdate = null, this.updateInternal({ scene: n, originToWorld: i, viewToWorld: e });
|
this.pendingUpdate.scene = null, this.pendingUpdate.timeoutId = -1, this.updateInternal({
|
||||||
}
|
scene: n,
|
||||||
}, 1));
|
originToWorld: i,
|
||||||
|
viewToWorld: e
|
||||||
|
}) && this.renderer.getContext().flush();
|
||||||
|
}, 1)));
|
||||||
}
|
}
|
||||||
updateInternal({
|
updateInternal({
|
||||||
scene: A,
|
scene: A,
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user