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.
- package/README.md +58 -29
- package/dist/ArchiveImporter-D735xX-4.js +7860 -0
- package/dist/BidirectionalIntegrator-M89c0AlP.js +954 -0
- package/dist/{BufferLayout-D_IBo2ci.js → BufferLayout-xPRH9jYD.js} +41 -5
- package/dist/{NeuralRetouch-Cr-otSW8.js → NeuralRetouch-DiBH63kz.js} +1 -1
- package/dist/{NeuralSuperRes-B7E3_M0t.js → NeuralSuperRes-CZNQP13W.js} +1 -1
- package/dist/{PathTracer-D6nbknj5.js → PathTracer-BXCCVrPK.js} +4371 -4612
- package/dist/{PhysicalSky-Dq5VSiCQ.js → PhysicalSky-DqmaS0lb.js} +2 -2
- package/dist/{RayzeeRenderer-DbjqO6v-.js → RayzeeRenderer-DUSMFhmc.js} +426 -363
- package/dist/SolarLimb-bZE6y63S.js +762 -0
- package/dist/addons/archives.es.js +1 -1
- package/dist/addons/bidirectional.es.js +1 -1
- package/dist/addons/physical-sky.es.js +1 -1
- package/dist/rayzee-core.es.js +7 -7
- package/dist/rayzee.es.js +472 -468
- package/dist/rayzee.umd.js +106 -105
- package/dist/sceneCachePolicy-BAib5fCp.js +1602 -0
- package/package.json +1 -1
- package/src/PathTracerApp.js +4 -3
- package/src/Processor/ArchiveImporter.js +173 -94
- package/src/Processor/ArchiveReader.js +20 -23
- package/src/Processor/AssetLoader.js +48 -1
- package/src/Processor/BVHRefitter.js +109 -13
- package/src/Processor/BufferLayout.js +115 -0
- package/src/Processor/ChunkedRecords.js +3 -2
- package/src/Processor/EmissiveTriangleBuilder.js +6 -6
- package/src/Processor/GeometryExtractor.js +189 -79
- package/src/Processor/HostMemory.js +39 -9
- package/src/Processor/InstanceTable.js +714 -42
- package/src/Processor/PBRT/PBRTCurves.js +224 -6
- package/src/Processor/PBRT/PBRTMaterials.js +3 -0
- package/src/Processor/PBRT/PBRTSceneBuilder.js +82 -25
- package/src/Processor/PackedRayBuffer.js +5 -2
- package/src/Processor/SceneProcessor.js +747 -141
- package/src/Processor/TLASBuilder.js +32 -17
- package/src/Processor/USD/USDLayer.js +1149 -0
- package/src/Processor/USD/USDScene.js +1655 -0
- package/src/Processor/USD/USDStage.js +682 -0
- package/src/Processor/USD/USDText.js +674 -0
- package/src/Processor/USD/index.js +138 -0
- package/src/Processor/Workers/BVHRefitWorker.js +3 -3
- package/src/RayzeeRenderer.js +167 -26
- package/src/Stages/NormalDepth.js +7 -12
- package/src/Stages/PathTracer.js +12 -17
- package/src/Stages/PathTracerStage.js +273 -96
- package/src/Storage/GeometrySpill.js +46 -14
- package/src/Storage/SceneGraphCodec.js +17 -3
- package/src/Storage/SpillStore.js +9 -0
- package/src/TSL/BVHTraversal.js +183 -7
- package/src/TSL/Common.js +57 -13
- package/src/TSL/ShadeKernel.js +3 -2
- package/src/TSL/TextureSampling.js +11 -8
- package/src/TSL/patches.js +84 -0
- package/src/integrators/BidirectionalIntegrator.js +20 -2
- package/src/managers/DenoisingManager.js +4 -4
- package/src/managers/InteractionManager.js +19 -6
- package/src/managers/MaterialDataManager.js +22 -5
- package/src/managers/UniformManager.js +3 -0
- package/dist/ArchiveImporter-D_x863yu.js +0 -5198
- package/dist/BidirectionalIntegrator-DmkxxEOR.js +0 -946
- package/dist/SolarLimb-CPaeZVwz.js +0 -721
- 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
|
-
|
|
142
|
-
|
|
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
|
|
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 {
|
|
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-
|
|
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-
|
|
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";
|