rayzee 11.2.1 → 11.3.0

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.
Files changed (62) hide show
  1. package/README.md +58 -29
  2. package/dist/ArchiveImporter-D735xX-4.js +7860 -0
  3. package/dist/BidirectionalIntegrator-M89c0AlP.js +954 -0
  4. package/dist/{BufferLayout-D_IBo2ci.js → BufferLayout-xPRH9jYD.js} +41 -5
  5. package/dist/{NeuralRetouch-Cr-otSW8.js → NeuralRetouch-DiBH63kz.js} +1 -1
  6. package/dist/{NeuralSuperRes-B7E3_M0t.js → NeuralSuperRes-CZNQP13W.js} +1 -1
  7. package/dist/{PathTracer-D6nbknj5.js → PathTracer-BXCCVrPK.js} +4371 -4612
  8. package/dist/{PhysicalSky-Dq5VSiCQ.js → PhysicalSky-DqmaS0lb.js} +2 -2
  9. package/dist/{RayzeeRenderer-DbjqO6v-.js → RayzeeRenderer-DUSMFhmc.js} +426 -363
  10. package/dist/SolarLimb-bZE6y63S.js +762 -0
  11. package/dist/addons/archives.es.js +1 -1
  12. package/dist/addons/bidirectional.es.js +1 -1
  13. package/dist/addons/physical-sky.es.js +1 -1
  14. package/dist/rayzee-core.es.js +7 -7
  15. package/dist/rayzee.es.js +472 -468
  16. package/dist/rayzee.umd.js +106 -105
  17. package/dist/sceneCachePolicy-BAib5fCp.js +1602 -0
  18. package/package.json +1 -1
  19. package/src/PathTracerApp.js +4 -3
  20. package/src/Processor/ArchiveImporter.js +173 -94
  21. package/src/Processor/ArchiveReader.js +20 -23
  22. package/src/Processor/AssetLoader.js +48 -1
  23. package/src/Processor/BVHRefitter.js +109 -13
  24. package/src/Processor/BufferLayout.js +115 -0
  25. package/src/Processor/ChunkedRecords.js +3 -2
  26. package/src/Processor/EmissiveTriangleBuilder.js +6 -6
  27. package/src/Processor/GeometryExtractor.js +189 -79
  28. package/src/Processor/HostMemory.js +39 -9
  29. package/src/Processor/InstanceTable.js +714 -42
  30. package/src/Processor/PBRT/PBRTCurves.js +224 -6
  31. package/src/Processor/PBRT/PBRTMaterials.js +3 -0
  32. package/src/Processor/PBRT/PBRTSceneBuilder.js +82 -25
  33. package/src/Processor/PackedRayBuffer.js +5 -2
  34. package/src/Processor/SceneProcessor.js +747 -141
  35. package/src/Processor/TLASBuilder.js +32 -17
  36. package/src/Processor/USD/USDLayer.js +1149 -0
  37. package/src/Processor/USD/USDScene.js +1655 -0
  38. package/src/Processor/USD/USDStage.js +682 -0
  39. package/src/Processor/USD/USDText.js +674 -0
  40. package/src/Processor/USD/index.js +138 -0
  41. package/src/Processor/Workers/BVHRefitWorker.js +3 -3
  42. package/src/RayzeeRenderer.js +167 -26
  43. package/src/Stages/NormalDepth.js +7 -12
  44. package/src/Stages/PathTracer.js +12 -17
  45. package/src/Stages/PathTracerStage.js +273 -96
  46. package/src/Storage/GeometrySpill.js +46 -14
  47. package/src/Storage/SceneGraphCodec.js +17 -3
  48. package/src/Storage/SpillStore.js +9 -0
  49. package/src/TSL/BVHTraversal.js +183 -7
  50. package/src/TSL/Common.js +57 -13
  51. package/src/TSL/ShadeKernel.js +3 -2
  52. package/src/TSL/TextureSampling.js +11 -8
  53. package/src/TSL/patches.js +84 -0
  54. package/src/integrators/BidirectionalIntegrator.js +20 -2
  55. package/src/managers/DenoisingManager.js +4 -4
  56. package/src/managers/InteractionManager.js +19 -6
  57. package/src/managers/MaterialDataManager.js +22 -5
  58. package/src/managers/UniformManager.js +3 -0
  59. package/dist/ArchiveImporter-D_x863yu.js +0 -5198
  60. package/dist/BidirectionalIntegrator-DmkxxEOR.js +0 -946
  61. package/dist/SolarLimb-CPaeZVwz.js +0 -721
  62. package/dist/sceneCachePolicy-C4-4qwt6.js +0 -485
@@ -137,14 +137,50 @@ var a = {
137
137
  }, o = (e) => Number.isFinite(e) && e > 0 ? e : 0, s = 1073741824, c = 1073741824, l = 1073741823, u = {
138
138
  TRIANGLE_LEAF: 1073741824,
139
139
  BLAS_POINTER_LEAF: 1073741825,
140
- FRONTIER: 1073741826
141
- }, d = 1 << 27;
142
- function f(e) {
140
+ FRONTIER: 1073741826,
141
+ CLUSTER_LEAF: 1073741827
142
+ }, d = 268435455, f = 1073741823, p = 2147483648, m = 1073741824, h = new Float32Array(1), g = new Uint32Array(h.buffer);
143
+ function _(e) {
144
+ let t = Math.fround(e);
145
+ return t <= e ? t : (h[0] = t, g[0] += t > 0 ? -1 : 1, h[0]);
146
+ }
147
+ function v(e, t) {
148
+ return Math.max(Math.abs(e), Math.abs(t), 1e-30) * 2 ** -21;
149
+ }
150
+ var y = [
151
+ 2,
152
+ 4,
153
+ 5
154
+ ];
155
+ function b(e, t, n, r, i, a, o) {
156
+ let s = 0;
157
+ for (let c = 0; c < 3; c++) {
158
+ let l = Infinity, u = -Infinity;
159
+ for (let e = 0; e < i; e++) l = Math.min(l, r[e * 6 + c]), u = Math.max(u, r[e * 6 + 3 + c]);
160
+ if (a && (a[o + c] = l, a[o + 3 + c] = u), !(l <= u)) {
161
+ e[n + y[c]] = S, t[n + 6 + c] = 0, t[n + 9 + c] = 0;
162
+ continue;
163
+ }
164
+ let d = v(l, u), f = _(l - d), p = Math.max(-126, Math.ceil(Math.log2((u + d - f) / 255)));
165
+ for (; Math.fround(f + 255 * 2 ** p) < u + d;) p++;
166
+ let m = 2 ** p;
167
+ e[n + y[c]] = f, s |= p + 127 << c * 8;
168
+ let h = 0, g = 0;
169
+ for (let e = 0; e < i; e++) {
170
+ let t = r[e * 6 + c], n = r[e * 6 + 3 + c], i = v(t, n);
171
+ h |= Math.max(0, Math.min(255, Math.floor((t - i - f) / m))) << e * 8, g |= Math.max(0, Math.min(255, Math.ceil((n + i - f) / m))) << e * 8;
172
+ }
173
+ t[n + 6 + c] = h >>> 0, t[n + 9 + c] = g >>> 0;
174
+ }
175
+ t[n + 1] = s >>> 0;
176
+ }
177
+ var x = 1 << 27, S = 1e30;
178
+ function C(e) {
143
179
  return new Uint32Array(e.buffer, e.byteOffset, e.length);
144
180
  }
145
- function p(e, t) {
181
+ function w(e, t) {
146
182
  if (e >= 1073741824) throw RangeError(`${t} is ${e.toLocaleString()}, at or past the BVH index limit of ${s.toLocaleString()}. Node indices are stored as u32 bit patterns and the leaf tags occupy everything above that.`);
147
183
  return e;
148
184
  }
149
185
  //#endregion
150
- export { c as a, t as c, o as d, i as f, a as i, p as l, n as m, u as n, l as o, r as p, s as r, e as s, d as t, f as u };
186
+ export { o as _, p as a, n as b, m as c, l as d, e as f, b as g, C as h, s as i, a as l, w as m, x as n, d as o, t as p, u as r, f as s, S as t, c as u, i as v, r as y };
@@ -1,4 +1,4 @@
1
- import { n as e } from "./BidirectionalIntegrator-DmkxxEOR.js";
1
+ import { n as e } from "./BidirectionalIntegrator-M89c0AlP.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-BOjpul7A.js";
@@ -1,4 +1,4 @@
1
- import { n as e } from "./BidirectionalIntegrator-DmkxxEOR.js";
1
+ import { n as e } from "./BidirectionalIntegrator-M89c0AlP.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";