@needle-tools/engine 3.37.12-alpha.4 → 3.37.12-alpha.5

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,9 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [3.37.12-alpha.5] - 2024-05-19
8
+ - Fix: Bump `gltf-progressive` package to support updating LODs when using postprocessing effects
9
+
7
10
  ## [3.37.12-alpha.4] - 2024-05-18
8
11
  - Fix: AR placement being prevented by other scripts that caused the event being `used`
9
12
 
@@ -29513,13 +29513,13 @@ function EwA(g) {
29513
29513
  WU = g;
29514
29514
  }
29515
29515
  const AP = IA("debugdefines");
29516
- bh('if(!globalThis[""3.37.12-alpha.4""]) globalThis[""3.37.12-alpha.4""] = "0.0.0";');
29516
+ bh('if(!globalThis[""3.37.12-alpha.5""]) globalThis[""3.37.12-alpha.5""] = "0.0.0";');
29517
29517
  bh('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
29518
- bh('if(!globalThis[""Sat May 18 2024 14:44:17 GMT+0200 (Central European Summer Time)""]) globalThis[""Sat May 18 2024 14:44:17 GMT+0200 (Central European Summer Time)""] = "unknown";');
29519
- bh('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.37.12-alpha.4";');
29518
+ bh('if(!globalThis[""Sun May 19 2024 11:30:57 GMT+0200 (Central European Summer Time)""]) globalThis[""Sun May 19 2024 11:30:57 GMT+0200 (Central European Summer Time)""] = "unknown";');
29519
+ bh('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.37.12-alpha.5";');
29520
29520
  bh('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
29521
- bh('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Sat May 18 2024 14:44:17 GMT+0200 (Central European Summer Time)";');
29522
- const en = "3.37.12-alpha.4", Xb = "undefined", eP = "Sat May 18 2024 14:44:17 GMT+0200 (Central European Summer Time)";
29521
+ bh('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Sun May 19 2024 11:30:57 GMT+0200 (Central European Summer Time)";');
29522
+ const en = "3.37.12-alpha.5", Xb = "undefined", eP = "Sun May 19 2024 11:30:57 GMT+0200 (Central European Summer Time)";
29523
29523
  AP && console.log(`Engine version: ${en} (generator: ${Xb})
29524
29524
  Project built at ${eP}`);
29525
29525
  const Jr = "needle_isActiveInHierarchy", Ec = "builtin_components", Cy = "needle_editor_guid";
@@ -38952,24 +38952,32 @@ const pM = QK("debugprogressive"), AIA = QK("noprogressive"), Fn = class {
38952
38952
  onBeforeRender(g, A, e, t) {
38953
38953
  }
38954
38954
  onAfterRender(g, A, e, t) {
38955
- var i, I;
38956
- if (!this.pause && e == 0) {
38955
+ var s, n;
38956
+ if (this.pause)
38957
+ return;
38958
+ const i = this.renderer.renderLists.get(g, 0), I = i.opaque;
38959
+ let o = !0;
38960
+ if (I.length === 1) {
38961
+ const C = I[0].material;
38962
+ (C.name === "EffectMaterial" || C.name === "CopyShader") && (o = !1);
38963
+ }
38964
+ if (o) {
38957
38965
  if (AIA || this.updateInterval > 0 && t % this.updateInterval != 0)
38958
38966
  return;
38959
38967
  this.projectionScreenMatrix.multiplyMatrices(A.projectionMatrix, A.matrixWorldInverse), this.cameraFrustrum.setFromProjectionMatrix(this.projectionScreenMatrix, this.renderer.coordinateSystem);
38960
- const o = 1e5, s = this.renderer.renderLists.get(g, e), n = s.opaque;
38961
- for (const a of n) {
38962
- if (a.material && (((i = a.geometry) == null ? void 0 : i.type) === "BoxGeometry" || ((I = a.geometry) == null ? void 0 : I.type) === "BufferGeometry") && (a.material.name === "SphericalGaussianBlur" || a.material.name == "BackgroundCubeMaterial" || a.material.name === "CubemapFromEquirect" || a.material.name === "EquirectangularToCubeUV")) {
38963
- pM && (a.material["NEEDLE_PROGRESSIVE:IGNORE-WARNING"] || (a.material["NEEDLE_PROGRESSIVE:IGNORE-WARNING"] = !0, console.warn("Ignoring skybox or BLIT object", a, a.material.name, a.material.type)));
38968
+ const C = 1e5;
38969
+ for (const r of I) {
38970
+ if (r.material && (((s = r.geometry) == null ? void 0 : s.type) === "BoxGeometry" || ((n = r.geometry) == null ? void 0 : n.type) === "BufferGeometry") && (r.material.name === "SphericalGaussianBlur" || r.material.name == "BackgroundCubeMaterial" || r.material.name === "CubemapFromEquirect" || r.material.name === "EquirectangularToCubeUV")) {
38971
+ pM && (r.material["NEEDLE_PROGRESSIVE:IGNORE-WARNING"] || (r.material["NEEDLE_PROGRESSIVE:IGNORE-WARNING"] = !0, console.warn("Ignoring skybox or BLIT object", r, r.material.name, r.material.type)));
38964
38972
  continue;
38965
38973
  }
38966
- const r = a.object;
38967
- (r instanceof Wr || r.isMesh) && this.updateLODs(g, A, r, o);
38974
+ const Q = r.object;
38975
+ (Q instanceof Wr || Q.isMesh) && this.updateLODs(g, A, Q, C);
38968
38976
  }
38969
- const C = s.transparent;
38970
- for (const a of C) {
38971
- const r = a.object;
38972
- (r instanceof Wr || r.isMesh) && this.updateLODs(g, A, r, o);
38977
+ const a = i.transparent;
38978
+ for (const r of a) {
38979
+ const Q = r.object;
38980
+ (Q instanceof Wr || Q.isMesh) && this.updateLODs(g, A, Q, C);
38973
38981
  }
38974
38982
  }
38975
38983
  }
@@ -29513,13 +29513,13 @@ function Ube(s) {
29513
29513
  DT = s;
29514
29514
  }
29515
29515
  const yG = ne("debugdefines");
29516
- rm('if(!globalThis[""3.37.12-alpha.4""]) globalThis[""3.37.12-alpha.4""] = "0.0.0";');
29516
+ rm('if(!globalThis[""3.37.12-alpha.5""]) globalThis[""3.37.12-alpha.5""] = "0.0.0";');
29517
29517
  rm('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
29518
- rm('if(!globalThis[""Sat May 18 2024 14:44:29 GMT+0200 (Central European Summer Time)""]) globalThis[""Sat May 18 2024 14:44:29 GMT+0200 (Central European Summer Time)""] = "unknown";');
29519
- rm('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.37.12-alpha.4";');
29518
+ rm('if(!globalThis[""Sun May 19 2024 11:31:08 GMT+0200 (Central European Summer Time)""]) globalThis[""Sun May 19 2024 11:31:08 GMT+0200 (Central European Summer Time)""] = "unknown";');
29519
+ rm('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.37.12-alpha.5";');
29520
29520
  rm('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
29521
- rm('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Sat May 18 2024 14:44:29 GMT+0200 (Central European Summer Time)";');
29522
- const za = "3.37.12-alpha.4", zP = "undefined", vG = "Sat May 18 2024 14:44:29 GMT+0200 (Central European Summer Time)";
29521
+ rm('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Sun May 19 2024 11:31:08 GMT+0200 (Central European Summer Time)";');
29522
+ const za = "3.37.12-alpha.5", zP = "undefined", vG = "Sun May 19 2024 11:31:08 GMT+0200 (Central European Summer Time)";
29523
29523
  yG && console.log(`Engine version: ${za} (generator: ${zP})
29524
29524
  Project built at ${vG}`);
29525
29525
  const mu = "needle_isActiveInHierarchy", Vp = "builtin_components", wx = "needle_editor_guid";
@@ -38952,24 +38952,32 @@ const a1 = iD("debugprogressive"), wne = iD("noprogressive"), Ac = class {
38952
38952
  onBeforeRender(s, e, t, i) {
38953
38953
  }
38954
38954
  onAfterRender(s, e, t, i) {
38955
- var n, r;
38956
- if (!this.pause && t == 0) {
38955
+ var a, c;
38956
+ if (this.pause)
38957
+ return;
38958
+ const n = this.renderer.renderLists.get(s, 0), r = n.opaque;
38959
+ let o = !0;
38960
+ if (r.length === 1) {
38961
+ const l = r[0].material;
38962
+ (l.name === "EffectMaterial" || l.name === "CopyShader") && (o = !1);
38963
+ }
38964
+ if (o) {
38957
38965
  if (wne || this.updateInterval > 0 && i % this.updateInterval != 0)
38958
38966
  return;
38959
38967
  this.projectionScreenMatrix.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), this.cameraFrustrum.setFromProjectionMatrix(this.projectionScreenMatrix, this.renderer.coordinateSystem);
38960
- const o = 1e5, a = this.renderer.renderLists.get(s, t), c = a.opaque;
38961
- for (const h of c) {
38962
- if (h.material && (((n = h.geometry) == null ? void 0 : n.type) === "BoxGeometry" || ((r = h.geometry) == null ? void 0 : r.type) === "BufferGeometry") && (h.material.name === "SphericalGaussianBlur" || h.material.name == "BackgroundCubeMaterial" || h.material.name === "CubemapFromEquirect" || h.material.name === "EquirectangularToCubeUV")) {
38963
- a1 && (h.material["NEEDLE_PROGRESSIVE:IGNORE-WARNING"] || (h.material["NEEDLE_PROGRESSIVE:IGNORE-WARNING"] = !0, console.warn("Ignoring skybox or BLIT object", h, h.material.name, h.material.type)));
38968
+ const l = 1e5;
38969
+ for (const d of r) {
38970
+ if (d.material && (((a = d.geometry) == null ? void 0 : a.type) === "BoxGeometry" || ((c = d.geometry) == null ? void 0 : c.type) === "BufferGeometry") && (d.material.name === "SphericalGaussianBlur" || d.material.name == "BackgroundCubeMaterial" || d.material.name === "CubemapFromEquirect" || d.material.name === "EquirectangularToCubeUV")) {
38971
+ a1 && (d.material["NEEDLE_PROGRESSIVE:IGNORE-WARNING"] || (d.material["NEEDLE_PROGRESSIVE:IGNORE-WARNING"] = !0, console.warn("Ignoring skybox or BLIT object", d, d.material.name, d.material.type)));
38964
38972
  continue;
38965
38973
  }
38966
- const d = h.object;
38967
- (d instanceof Iu || d.isMesh) && this.updateLODs(s, e, d, o);
38974
+ const f = d.object;
38975
+ (f instanceof Iu || f.isMesh) && this.updateLODs(s, e, f, l);
38968
38976
  }
38969
- const l = a.transparent;
38970
- for (const h of l) {
38971
- const d = h.object;
38972
- (d instanceof Iu || d.isMesh) && this.updateLODs(s, e, d, o);
38977
+ const h = n.transparent;
38978
+ for (const d of h) {
38979
+ const f = d.object;
38980
+ (f instanceof Iu || f.isMesh) && this.updateLODs(s, e, f, l);
38973
38981
  }
38974
38982
  }
38975
38983
  }