mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
Bump dist build
This commit is contained in:
Vendored
-1
@@ -1 +0,0 @@
|
||||
80eac2d282f269dddc753de144aaeec0dfdeeec1
|
||||
Vendored
+4
-4
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
+3
-3
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
+4
-4
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
+6
-6
@@ -7990,7 +7990,7 @@ uniform float preBlurAmount;
|
||||
uniform float focalDistance;
|
||||
uniform float apertureAngle;
|
||||
uniform float clipXY;
|
||||
uniform float renderScale;
|
||||
uniform float focalAdjustment;
|
||||
|
||||
uniform usampler2DArray packedSplats;
|
||||
|
||||
@@ -8077,7 +8077,7 @@ void main() {
|
||||
mat3 cov3D = RS * transpose(RS);
|
||||
|
||||
|
||||
vec2 scaledRenderSize = renderSize * renderScale;
|
||||
vec2 scaledRenderSize = renderSize * focalAdjustment;
|
||||
vec2 focal = 0.5 * scaledRenderSize * vec2(projectionMatrix[0][0], projectionMatrix[1][1]);
|
||||
float invZ = 1.0 / viewCenter.z;
|
||||
vec2 J1 = focal * invZ;
|
||||
@@ -8192,7 +8192,7 @@ const aA = class aA extends Q.Mesh {
|
||||
depthWrite: !1,
|
||||
side: Q.DoubleSide
|
||||
});
|
||||
super(cs, i), this.renderScale = 1, this.splatTexture = null, this.autoViewpoints = [], this.rotateToAccumulator = new Zt({ value: new Q.Quaternion() }), this.translateToAccumulator = new St({ value: new Q.Vector3() }), this.lastFrame = -1, this.lastUpdateTime = null, this.defaultCameras = [], this.pendingUpdate = null, this.envViewpoint = null, this.frustumCulled = !1, this.renderer = A.renderer, this.material = i, this.uniforms = e;
|
||||
super(cs, i), this.splatTexture = null, this.autoViewpoints = [], this.rotateToAccumulator = new Zt({ value: new Q.Quaternion() }), this.translateToAccumulator = new St({ value: new Q.Vector3() }), this.lastFrame = -1, this.lastUpdateTime = null, this.defaultCameras = [], this.pendingUpdate = null, this.envViewpoint = null, this.frustumCulled = !1, this.renderer = A.renderer, this.material = i, this.uniforms = e;
|
||||
const n = kA(
|
||||
{ gsplat: W },
|
||||
{ gsplat: W },
|
||||
@@ -8205,7 +8205,7 @@ const aA = class aA extends Q.Mesh {
|
||||
}), { gsplat: r };
|
||||
}
|
||||
);
|
||||
this.modifier = new XQ(n), this.autoUpdate = A.autoUpdate ?? !0, this.preUpdate = A.preUpdate ?? !1, this.originDistance = A.originDistance ?? 1, this.maxStdDev = A.maxStdDev ?? Math.sqrt(8), 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.active = new Ne(), this.accumulatorCount = 1, this.freeAccumulators = [];
|
||||
this.modifier = new XQ(n), this.autoUpdate = A.autoUpdate ?? !0, this.preUpdate = A.preUpdate ?? !1, this.originDistance = A.originDistance ?? 1, this.maxStdDev = A.maxStdDev ?? Math.sqrt(8), 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.active = new Ne(), this.accumulatorCount = 1, this.freeAccumulators = [];
|
||||
for (let r = 0; r < 1; ++r)
|
||||
this.freeAccumulators.push(new Ne()), this.accumulatorCount += 1;
|
||||
this.defaultView = new ce({
|
||||
@@ -8245,7 +8245,7 @@ const aA = class aA extends Q.Mesh {
|
||||
// Clip Gsplats that are clipXY times beyond the +-1 frustum bounds
|
||||
clipXY: { value: 1.4 },
|
||||
// Debug renderSize scale factor
|
||||
renderScale: { value: 1 },
|
||||
focalAdjustment: { value: 1 },
|
||||
// Enable splat texture rendering
|
||||
splatTexEnable: { value: !1 },
|
||||
// Splat texture to render
|
||||
@@ -8322,7 +8322,7 @@ const aA = class aA extends Q.Mesh {
|
||||
}
|
||||
}
|
||||
const I = s;
|
||||
if (this.uniforms.near.value = I.near, this.uniforms.far.value = I.far, this.uniforms.encodeLinear.value = o.encodeLinear, this.uniforms.maxStdDev.value = this.maxStdDev, this.uniforms.enable2DGS.value = this.enable2DGS, this.uniforms.preBlurAmount.value = this.preBlurAmount, this.uniforms.blurAmount.value = this.blurAmount, this.uniforms.focalDistance.value = this.focalDistance, this.uniforms.apertureAngle.value = this.apertureAngle, this.uniforms.falloff.value = this.falloff, this.uniforms.clipXY.value = this.clipXY, this.uniforms.renderScale.value = this.renderScale, this.splatTexture) {
|
||||
if (this.uniforms.near.value = I.near, this.uniforms.far.value = I.far, this.uniforms.encodeLinear.value = o.encodeLinear, this.uniforms.maxStdDev.value = this.maxStdDev, this.uniforms.enable2DGS.value = this.enable2DGS, this.uniforms.preBlurAmount.value = this.preBlurAmount, this.uniforms.blurAmount.value = this.blurAmount, this.uniforms.focalDistance.value = this.focalDistance, this.uniforms.apertureAngle.value = this.apertureAngle, this.uniforms.falloff.value = this.falloff, this.uniforms.clipXY.value = this.clipXY, this.uniforms.focalAdjustment.value = this.focalAdjustment, this.splatTexture) {
|
||||
const { enable: E, texture: h, multiply: u, add: p, near: d, far: y, mid: f } = this.splatTexture;
|
||||
E && h ? (this.uniforms.splatTexEnable.value = !0, this.uniforms.splatTexture.value = h, u ? this.uniforms.splatTexMul.value.fromArray(u.elements) : this.uniforms.splatTexMul.value.set(
|
||||
0.5 / this.maxStdDev,
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+3
-2
@@ -17,6 +17,7 @@ export type SparkRendererOptions = {
|
||||
apertureAngle?: number;
|
||||
falloff?: number;
|
||||
clipXY?: number;
|
||||
focalAdjustment?: number;
|
||||
view?: SparkViewpointOptions;
|
||||
};
|
||||
export declare class SparkRenderer extends THREE.Mesh {
|
||||
@@ -34,7 +35,7 @@ export declare class SparkRenderer extends THREE.Mesh {
|
||||
apertureAngle: number;
|
||||
falloff: number;
|
||||
clipXY: number;
|
||||
renderScale: number;
|
||||
focalAdjustment: number;
|
||||
splatTexture: null | {
|
||||
enable?: boolean;
|
||||
texture?: THREE.Data3DTexture;
|
||||
@@ -108,7 +109,7 @@ export declare class SparkRenderer extends THREE.Mesh {
|
||||
clipXY: {
|
||||
value: number;
|
||||
};
|
||||
renderScale: {
|
||||
focalAdjustment: {
|
||||
value: number;
|
||||
};
|
||||
splatTexEnable: {
|
||||
|
||||
Reference in New Issue
Block a user