@jdultra/threedtiles 13.0.30 → 13.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3061,11 +3061,11 @@ class qi extends ka {
3061
3061
  const l = new ia({ uniforms: { textureSize: { value: 512 }, numSlices: { value: 1 }, cov1Texture: { value: o.texture }, cov2Texture: { value: n.texture }, colorTexture: { value: s.texture }, positionTexture: { value: r.texture }, zUpToYUpMatrix3x3: { value: Yt }, sizeMultiplier: { value: 1 }, cropRadius: { value: Number.MAX_VALUE }, cameraNear: { value: 0.01 }, cameraFar: { value: 10 }, computeLinearDepth: { value: !0 } }, vertexShader: Oi(), fragmentShader: a || Ji(), transparent: !0, side: Ze, depthTest: !1, depthWrite: !1 }), d = new Ja(), g = new Float32Array([-0.5, 0.5, 0, 0.5, 0.5, 0, -0.5, -0.5, 0, 0.5, -0.5, 0]);
3062
3062
  d.setIndex([0, 2, 1, 2, 3, 1]), d.setAttribute("position", new be(g, 3));
3063
3063
  const h = new Uint32Array(i), b = new wa(h, 1, !1);
3064
- b.needsUpdate = !0, b.setUsage(Ka), d.setAttribute("order", b), d.instanceCount = 0, super(d, l), this.numBatches = 0, this.numVisibleBatches = 0, this.orderAttribute = b, this.textureSize = 512, this.numTextures = 1, this.batchSize = A, this.maxSplats = i, this.colorRenderTarget = s, this.positionRenderTarget = r, this.cov1RenderTarget = o, this.cov2RenderTarget = n, this.renderer = e, this.sortID = 0, this.freeAddresses = new He();
3064
+ b.needsUpdate = !0, b.setUsage(Ka), d.setAttribute("order", b), d.instanceCount = 0, super(d, l), this.numBatches = 0, this.numVisibleBatches = 0, this.orderAttribute = b, this.textureSize = 512, this.numTextures = 1, this.batchSize = A, this.maxSplats = i, this.numSplatsRendered = 0, this.colorRenderTarget = s, this.positionRenderTarget = r, this.cov1RenderTarget = o, this.cov2RenderTarget = n, this.renderer = e, this.sortID = 0, this.freeAddresses = new He();
3065
3065
  for (let I = 0; I < this.maxSplats; I += A) this.freeAddresses.add(I);
3066
3066
  this.worker = new _i({ type: "module" }), this.sortListeners = [], this.worker.onmessage = (I) => {
3067
3067
  const p = new Uint32Array(I.data.order);
3068
- if (p.length > this.orderAttribute.count) {
3068
+ if (this.numSplatsRendered = p.length, p.length > this.orderAttribute.count) {
3069
3069
  const u = new Ja(), B = new Float32Array([-0.5, 0.5, 0, 0.5, 0.5, 0, -0.5, -0.5, 0, 0.5, -0.5, 0]), C = [0, 2, 1, 2, 3, 1];
3070
3070
  u.setIndex(C), u.setAttribute("position", new be(B, 3));
3071
3071
  const y = new Uint32Array(this.maxSplats), x = new wa(y, 1, !1);