rayzee 11.1.0 → 11.1.1

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/README.md CHANGED
@@ -359,7 +359,7 @@ engine.cancelLoad() // Abort an in-flight download (ne
359
359
 
360
360
  On `rayzee/core`, formats other than glTF and `.hdr` need the `rayzee/addons/formats` add-on — see [Add-ons](#add-ons).
361
361
 
362
- `loadModel` / `loadObject3D` **replace** the current scene. To add or remove objects from a live scene without a full reload (and without reframing the camera):
362
+ `loadModel` / `loadObject3D` **replace** the current scene. A model that carries cameras opens through its first one; `cameraManager.switchCamera(0)` goes back to the default view, fitted to the model. To add or remove objects from a live scene without a full reload (and without reframing the camera):
363
363
 
364
364
  ```js
365
365
  const id = await engine.addModel(url, { name }) // Append a model, rebuild in place
@@ -1,5 +1,5 @@
1
- import { n as e } from "./BidirectionalIntegrator-CBw8hkeu.js";
2
- import { A as t, g as n, n as r, r as i } from "./sceneCachePolicy-C67jbci-.js";
1
+ import { n as e } from "./BidirectionalIntegrator-DIPN8lJW.js";
2
+ import { A as t, g as n, n as r, r as i } from "./sceneCachePolicy-Bk8sI5PZ.js";
3
3
  import { n as a, r as o } from "./EngineIssues-CIZnXHsF.js";
4
4
  import { r as s } from "./shared-BGBcSxBQ.js";
5
5
  import { a as c, n as l, r as u } from "./identity-DrQsGT2o.js";
@@ -1,5 +1,5 @@
1
1
  import { $t as e, F as t, Ft as n, I as r, J as i, K as a, L as o, Mt as s, R as c, Rt as l, U as u, X as d, Y as f, Z as p, Zt as m, c as ee, ct as te, dt as ne, et as h, ft as re, i as g, j as ie, jt as ae, k as oe, lt as se, nn as ce, q as _, qt as v, r as le, rn as ue, wt as de, y as fe } from "./SolarLimb-CPaeZVwz.js";
2
- import { A as y, C as b, D as x, E as S, F as C, Ft as pe, G as w, I as T, J as E, M as me, Mt as he, Nt as ge, O as _e, Pt as D, S as ve, T as ye, Tt as be, U as xe, V as O, W as Se, Y as k, _ as A, a as Ce, at as we, b as j, c as Te, d as Ee, f as De, g as Oe, h as M, i as ke, it as N, j as Ae, jt as P, k as je, l as Me, m as Ne, o as Pe, p as Fe, q as Ie, r as Le, rt as F, s as Re, t as ze, u as I, v as Be, w as Ve, wt as He, x as Ue, y as We } from "./PathTracer-72XufKAr.js";
2
+ import { A as y, C as b, D as x, E as S, F as C, Ft as pe, G as w, I as T, J as E, M as me, Mt as he, Nt as ge, O as _e, Pt as D, S as ve, T as ye, Tt as be, U as xe, V as O, W as Se, Y as k, _ as A, a as Ce, at as we, b as j, c as Te, d as Ee, f as De, g as Oe, h as M, i as ke, it as N, j as Ae, jt as P, k as je, l as Me, m as Ne, o as Pe, p as Fe, q as Ie, r as Le, rt as F, s as Re, t as ze, u as I, v as Be, w as Ve, wt as He, x as Ue, y as We } from "./PathTracer-D_LmDeLh.js";
3
3
  import "./BufferLayout-D_IBo2ci.js";
4
4
  import { Break as Ge, Fn as L, If as R, Loop as Ke, Return as z, abs as B, atomicAdd as qe, atomicFunc as Je, atomicLoad as V, atomicStore as Ye, bool as Xe, cos as Ze, cross as Qe, dot as H, exp2 as $e, float as U, floor as et, instanceIndex as tt, int as W, ivec2 as nt, ivec3 as rt, length as it, localId as at, log2 as ot, max as G, min as st, mix as ct, normalize as lt, sampler as ut, select as K, sin as dt, sqrt as ft, storage as pt, texture as mt, uint as q, uniform as J, uniformArray as ht, vec2 as gt, vec3 as Y, vec4 as _t, workgroupId as vt } from "three/tsl";
5
5
  import { DataTexture as yt, FloatType as bt, RedFormat as xt, Vector3 as St } from "three";
@@ -1,4 +1,4 @@
1
- import { n as e } from "./BidirectionalIntegrator-CBw8hkeu.js";
1
+ import { n as e } from "./BidirectionalIntegrator-DIPN8lJW.js";
2
2
  import { r as t } from "./Logger-dDDGj9Av.js";
3
3
  import { n } from "./AssetConfig-DSEntE65.js";
4
4
  import { t as r } from "./ToneMapGPU-CjU3osDd.js";
@@ -1,4 +1,4 @@
1
- import { n as e } from "./BidirectionalIntegrator-CBw8hkeu.js";
1
+ import { n as e } from "./BidirectionalIntegrator-DIPN8lJW.js";
2
2
  import { t } from "./EngineEvents-Ci8dVWCP.js";
3
3
  import { r as n } from "./Logger-dDDGj9Av.js";
4
4
  import { n as r } from "./AssetConfig-DSEntE65.js";
@@ -1,5 +1,5 @@
1
1
  import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as o, Ct as s, D as c, Dt as l, E as u, Et as d, G as f, Gt as p, H as m, Ht as h, It as g, J as _, Jt as v, K as y, Kt as b, Lt as x, M as S, Mt as C, N as w, Nt as T, O as E, Ot as D, P as O, Q as ee, Qt as te, Rt as k, S as ne, St as re, T as ie, Tt as A, Ut as ae, V as oe, Vt as se, W as ce, Wt as le, X as ue, Xt as de, Y as fe, Yt as pe, Z as me, Zt as he, _ as ge, _t as _e, a as ve, an as ye, at as be, b as xe, bt as Se, c as Ce, ct as we, d as Te, dt as Ee, en as De, f as Oe, ft as ke, g as Ae, gt as je, h as Me, ht as Ne, i as Pe, in as Fe, it as Ie, j as Le, jt as Re, k as ze, kt as Be, l as Ve, lt as He, m as Ue, mt as We, n as Ge, nn as Ke, nt as qe, o as Je, ot as Ye, p as Xe, pt as Ze, q as Qe, qt as $e, r as et, rn as tt, s as nt, st as rt, t as it, tn as at, tt as ot, u as st, ut as ct, v as lt, vt as ut, w as dt, wt as ft, x as pt, xt as mt, yt as ht, z as gt, zt as _t } from "./SolarLimb-CPaeZVwz.js";
2
- import { A as vt, S as yt, _ as bt, a as xt, b as St, c as Ct, d as wt, f as Tt, h as Et, i as Dt, k as Ot, m as kt, p as At, r as jt, s as Mt, t as Nt, x as Pt, y as Ft } from "./sceneCachePolicy-C67jbci-.js";
2
+ import { A as vt, S as yt, _ as bt, a as xt, b as St, c as Ct, d as wt, f as Tt, h as Et, i as Dt, k as Ot, m as kt, p as At, r as jt, s as Mt, t as Nt, x as Pt, y as Ft } from "./sceneCachePolicy-Bk8sI5PZ.js";
3
3
  import { a as It, i as j, o as Lt, r as Rt } from "./Logger-dDDGj9Av.js";
4
4
  import { a as zt, c as M, d as Bt, f as Vt, i as N, l as Ht, m as P, n as Ut, o as Wt, p as Gt, r as Kt, s as F, t as qt, u as Jt } from "./BufferLayout-D_IBo2ci.js";
5
5
  import { n as Yt, t as Xt } from "./EngineIssues-CIZnXHsF.js";
@@ -1,4 +1,4 @@
1
- import { n as e } from "./BidirectionalIntegrator-CBw8hkeu.js";
1
+ import { n as e } from "./BidirectionalIntegrator-DIPN8lJW.js";
2
2
  import { dt as t, i as n, nn as r } from "./SolarLimb-CPaeZVwz.js";
3
3
  import { r as i } from "./WorkingMatrix-C6y233hT.js";
4
4
  import { StorageInstancedBufferAttribute as a } from "three/webgpu";
@@ -1,7 +1,7 @@
1
1
  import { dt as e } from "./SolarLimb-CPaeZVwz.js";
2
- import { Bt as t, Et as n, It as r, Lt as i, Tt as a, Vt as o, _t as s, bt as c, ct as l, gt as u, ht as d, n as f, ot as ee, st as p, vt as m, xt as h, zt as te } from "./PathTracer-72XufKAr.js";
2
+ import { Bt as t, Et as n, It as r, Lt as i, Tt as a, Vt as o, _t as s, bt as c, ct as l, gt as u, ht as d, n as f, ot as ee, st as p, vt as m, xt as h, zt as te } from "./PathTracer-D_LmDeLh.js";
3
3
  import { n as ne, t as g } from "./EngineEvents-Ci8dVWCP.js";
4
- import { A as _, C as re, D as v, E as ie, O as ae, T as oe, d as se, g as ce, j as le, l as ue, r as de, u as fe, w as pe } from "./sceneCachePolicy-C67jbci-.js";
4
+ import { A as _, C as re, D as v, E as ie, O as ae, T as oe, d as se, g as ce, j as le, l as ue, r as de, u as fe, w as pe } from "./sceneCachePolicy-Bk8sI5PZ.js";
5
5
  import { i as y, r as me } from "./Logger-dDDGj9Av.js";
6
6
  import { n as he, s as ge } from "./BufferLayout-D_IBo2ci.js";
7
7
  import { i as _e, n as b, t as ve } from "./EngineIssues-CIZnXHsF.js";
@@ -1,3 +1,3 @@
1
1
  import { n as e, t } from "../ZipReader-gDSWr0I5.js";
2
- import { n, t as r } from "../ArchiveImporter-Hn35o6Z5.js";
2
+ import { n, t as r } from "../ArchiveImporter-CFcggGqi.js";
3
3
  export { r as ARCHIVE_ELEMENT_PROMPT_BYTES, n as ArchiveImporter, t as openZip, e as readZipDirectory };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../BidirectionalIntegrator-CBw8hkeu.js";
1
+ import { t as e } from "../BidirectionalIntegrator-DIPN8lJW.js";
2
2
  export { e as BidirectionalIntegrator };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../PhysicalSky-BgjdV88k.js";
1
+ import { t as e } from "../PhysicalSky-DYffGJ3O.js";
2
2
  export { e as PhysicalSky };
@@ -1,8 +1,8 @@
1
1
  import "./SolarLimb-CPaeZVwz.js";
2
- import { a as e, n as t, o as n, r, t as i } from "./RayzeeRenderer-1QRO97eq.js";
3
- import { Et as a, It as o, Ot as s, ht as c, mt as l, ut as u } from "./PathTracer-72XufKAr.js";
2
+ import { a as e, n as t, o as n, r, t as i } from "./RayzeeRenderer-DWx7D714.js";
3
+ import { Et as a, It as o, Ot as s, ht as c, mt as l, ut as u } from "./PathTracer-D_LmDeLh.js";
4
4
  import { n as d, t as f } from "./EngineEvents-Ci8dVWCP.js";
5
- import { r as p } from "./sceneCachePolicy-C67jbci-.js";
5
+ import { r as p } from "./sceneCachePolicy-Bk8sI5PZ.js";
6
6
  import { i as m, n as h, r as g, t as _ } from "./Logger-dDDGj9Av.js";
7
7
  import { s as v } from "./BufferLayout-D_IBo2ci.js";
8
8
  import { i as y, n as b, r as x, t as S } from "./EngineIssues-CIZnXHsF.js";
package/dist/rayzee.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { t as e } from "./BidirectionalIntegrator-CBw8hkeu.js";
1
+ import { t as e } from "./BidirectionalIntegrator-DIPN8lJW.js";
2
2
  import { $t as t, Ft as n, Jt as r, Pt as i, Qt as a, jt as o, rt as s, tn as c, wt as l } from "./SolarLimb-CPaeZVwz.js";
3
- import { _ as u, a as d, c as f, d as p, f as m, g as h, h as g, i as _, l as v, m as y, n as b, o as x, p as S, r as ee, s as C, t as te, u as w } from "./RayzeeRenderer-1QRO97eq.js";
4
- import { $ as ne, At as re, B as T, Bt as E, Ct as ie, Dt as ae, Et as oe, H as se, It as D, K as ce, L as O, Lt as k, N as le, Ot as ue, P as de, Q as A, R as fe, Rt as pe, St as me, Tt as he, Vt as ge, X as _e, Z as ve, bt as ye, dt as be, et as xe, ft as Se, ht as Ce, kt as we, lt as Te, mt as Ee, nt as De, pt as Oe, tt as ke, ut as Ae, xt as je, yt as Me, z as Ne } from "./PathTracer-72XufKAr.js";
3
+ import { _ as u, a as d, c as f, d as p, f as m, g as h, h as g, i as _, l as v, m as y, n as b, o as x, p as S, r as ee, s as C, t as te, u as w } from "./RayzeeRenderer-DWx7D714.js";
4
+ import { $ as ne, At as re, B as T, Bt as E, Ct as ie, Dt as ae, Et as oe, H as se, It as D, K as ce, L as O, Lt as k, N as le, Ot as ue, P as de, Q as A, R as fe, Rt as pe, St as me, Tt as he, Vt as ge, X as _e, Z as ve, bt as ye, dt as be, et as xe, ft as Se, ht as Ce, kt as we, lt as Te, mt as Ee, nt as De, pt as Oe, tt as ke, ut as Ae, xt as je, yt as Me, z as Ne } from "./PathTracer-D_LmDeLh.js";
5
5
  import { n as Pe, t as j } from "./EngineEvents-Ci8dVWCP.js";
6
- import { E as Fe, T as Ie, a as Le, c as Re, f as ze, i as Be, j as Ve, p as He, r as Ue } from "./sceneCachePolicy-C67jbci-.js";
6
+ import { E as Fe, T as Ie, a as Le, c as Re, f as ze, i as Be, j as Ve, p as He, r as Ue } from "./sceneCachePolicy-Bk8sI5PZ.js";
7
7
  import { i as We, n as Ge, r as Ke, t as qe } from "./Logger-dDDGj9Av.js";
8
8
  import { n as Je, s as Ye } from "./BufferLayout-D_IBo2ci.js";
9
9
  import { i as Xe, n as Ze, r as Qe, t as $e } from "./EngineIssues-CIZnXHsF.js";
@@ -18,8 +18,8 @@ import { t as Tt } from "./FileFormats-sPGJeCRc.js";
18
18
  import { A as Et, C as Dt, D as Ot, E as kt, O as At, S as jt, T as Mt, _ as Nt, a as Pt, b as Ft, c as It, d as Lt, f as Rt, g as zt, h as Bt, i as Vt, k as Ht, l as Ut, m as Wt, n as Gt, o as Kt, p as qt, r as Jt, s as Yt, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./ColorManagement-oeEk7oSu.js";
19
19
  import { c as nn, l as rn, n as an, o as on, t as sn } from "./openStorage-DwcBRUj7.js";
20
20
  import { n as cn, t as ln } from "./ZipReader-gDSWr0I5.js";
21
- import { i as un, n as dn, r as fn } from "./NeuralSuperRes-Bk7bHg2B.js";
22
- import { i as pn, n as mn, r as hn } from "./NeuralRetouch-BzNpiVHZ.js";
21
+ import { i as un, n as dn, r as fn } from "./NeuralSuperRes-B-rNIU_R.js";
22
+ import { i as pn, n as mn, r as hn } from "./NeuralRetouch-Doo3a4vY.js";
23
23
  import { ExternalTexture as gn, MeshBasicNodeMaterial as _n, QuadMesh as vn, ReadbackBuffer as yn, RenderTarget as bn, StorageTexture as M, TextureNode as N, WebGPURenderer as xn } from "three/webgpu";
24
24
  import { Fn as Sn, If as P, Loop as Cn, Return as wn, abs as Tn, atan as En, atomicAdd as Dn, atomicLoad as On, atomicStore as kn, attributeArray as An, dot as jn, exp as Mn, exp2 as Nn, float as F, floor as Pn, fract as Fn, int as I, ivec2 as L, localId as R, max as z, min as In, mix as B, normalize as Ln, pow as Rn, round as zn, saturate as V, select as H, smoothstep as Bn, sqrt as Vn, storage as Hn, textureLoad as U, textureStore as W, uint as G, uniform as K, uvec2 as Un, uvec4 as Wn, vec2 as Gn, vec3 as q, vec4 as J, wgslFn as Kn, workgroupArray as qn, workgroupBarrier as Jn, workgroupId as Y } from "three/tsl";
25
25
  import { ACESFilmicToneMapping as Yn, AddEquation as Xn, AnimationMixer as Zn, Box2 as Qn, Box3 as $n, ClampToEdgeWrapping as er, Color as tr, Controls as nr, CustomBlending as rr, DataArrayTexture as ir, DataTexture as ar, EventDispatcher as or, FloatType as sr, HalfFloatType as cr, InterpolateSmooth as lr, LinearFilter as X, LoopOnce as ur, LoopRepeat as dr, MathUtils as fr, Matrix4 as pr, Mesh as mr, MeshBasicMaterial as hr, NearestFilter as Z, NoColorSpace as gr, NumberKeyframeTrack as _r, OneFactor as vr, OrthographicCamera as yr, PerspectiveCamera as br, PropertyBinding as xr, Quaternion as Sr, RGBAFormat as Q, Raycaster as Cr, RedIntegerFormat as wr, SRGBColorSpace as Tr, Scene as Er, SphereGeometry as Dr, Timer as Or, UnsignedByteType as kr, UnsignedIntType as Ar, Vector2 as jr, Vector3 as $, Vector4 as Mr, VectorKeyframeTrack as Nr } from "three";
@@ -4651,9 +4651,9 @@ var Io = {
4651
4651
  }
4652
4652
  this._neuralPostBusy = !0, this.dispatchEvent({ type: j.UPSCALING_START });
4653
4653
  try {
4654
- let r = await import("./NeuralSuperRes-Bk7bHg2B.js").then((e) => e.t);
4654
+ let r = await import("./NeuralSuperRes-B-rNIU_R.js").then((e) => e.t);
4655
4655
  this._superResModule = r;
4656
- let i = n ? await import("./NeuralRetouch-BzNpiVHZ.js").then((e) => e.t) : null, a = this.denoiser?._outTexSize, o = (a?.width ?? 0) * (a?.height ?? 0), s = n && o <= i.RETOUCH_MAX_PIXELS;
4656
+ let i = n ? await import("./NeuralRetouch-Doo3a4vY.js").then((e) => e.t) : null, a = this.denoiser?._outTexSize, o = (a?.width ?? 0) * (a?.height ?? 0), s = n && o <= i.RETOUCH_MAX_PIXELS;
4657
4657
  if (n && !s && (Ro.warn(`Neural rendering skipped: the render is ${(o / 1e6).toFixed(1)} MP, above the ${(i.RETOUCH_MAX_PIXELS / 1e6).toFixed(1)} MP the pass survives.` + (t ? " The upscale still ran." : "")), this._releaseNeuralRetouch()), !t && !s) return;
4658
4658
  let c = {
4659
4659
  exposure: this._getEffectiveExposure(),
@@ -5641,7 +5641,7 @@ var Cs = Ke("engine"), ws = class extends te {
5641
5641
  }), this.cameraManager.camera;
5642
5642
  }
5643
5643
  _initAssetPipeline() {
5644
- super._initAssetPipeline(), this.assetLoader.controls = this.cameraManager.controls, this.assetLoader.registerFormat(...Tt), this.assetLoader.setArchiveImporterLoader(() => import("./ArchiveImporter-Hn35o6Z5.js").then((e) => e.r).then((e) => new e.ArchiveImporter(this.assetLoader)), wt);
5644
+ super._initAssetPipeline(), this.assetLoader.controls = this.cameraManager.controls, this.assetLoader.registerFormat(...Tt), this.assetLoader.setArchiveImporterLoader(() => import("./ArchiveImporter-CFcggGqi.js").then((e) => e.r).then((e) => new e.ArchiveImporter(this.assetLoader)), wt);
5645
5645
  let e = () => {
5646
5646
  this.needsReset = !0, this.stages.pathTracer?.enterInteractionMode(), this.wake();
5647
5647
  };
@@ -5667,7 +5667,7 @@ var Cs = Ke("engine"), ws = class extends te {
5667
5667
  super._initPipeline(), this.pipeline.eventBus.on("pathtracer:interactionStart", () => this._requestRenderScale(this._interactionRenderScale())), this.pipeline.eventBus.on("pathtracer:interactionEnd", () => this._applyRenderScale(1));
5668
5668
  }
5669
5669
  async _initManagers() {
5670
- await super._initManagers(), this.environmentManager.setProceduralSkyLoader(() => import("./PhysicalSky-BgjdV88k.js").then((e) => e.n).then((e) => e.PhysicalSky)), this.stages.pathTracer.registerIntegrator(["bidirectional", "vcm"], (t) => new e(t)), this.stages.pathTracer.requestOutput("gBuffer"), this.interactionManager = new oa({
5670
+ await super._initManagers(), this.environmentManager.setProceduralSkyLoader(() => import("./PhysicalSky-DYffGJ3O.js").then((e) => e.n).then((e) => e.PhysicalSky)), this.stages.pathTracer.registerIntegrator(["bidirectional", "vcm"], (t) => new e(t)), this.stages.pathTracer.requestOutput("gBuffer"), this.interactionManager = new oa({
5671
5671
  scene: this.meshScene,
5672
5672
  camera: this.camera,
5673
5673
  canvas: this.canvas,
@@ -5788,7 +5788,7 @@ var Cs = Ke("engine"), ws = class extends te {
5788
5788
  e || (this.interactionManager?.deselect(), this.transformManager?.detach?.()), this.animationManager?.dispose(), this._animRefitInFlight = !1, this._emittersMoved = !1;
5789
5789
  }
5790
5790
  _modelReplaced() {
5791
- this._syncControlsAfterLoad(), this.cameraManager.currentCameraIndex = 0;
5791
+ this._syncControlsAfterLoad(), this.cameraManager.currentCameraIndex = 0, this.cameraManager.cameras.length > 1 && this.cameraManager.switchCamera(1);
5792
5792
  }
5793
5793
  _modelAnnounced() {
5794
5794
  this._dispatchCamerasUpdated();