@plasius/gpu-renderer 0.2.50 → 0.2.52
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 +34 -0
- package/README.md +111 -910
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/wavefront-compute.js +2 -1
- package/src/wavefront-config.js +8 -0
package/dist/index.js
CHANGED
|
@@ -10554,6 +10554,12 @@ function resolveCamera(input, width, height) {
|
|
|
10554
10554
|
tanHalfFovY
|
|
10555
10555
|
});
|
|
10556
10556
|
}
|
|
10557
|
+
function updateWavefrontCameraConfig(config, camera) {
|
|
10558
|
+
return Object.freeze({
|
|
10559
|
+
...config,
|
|
10560
|
+
camera: resolveCamera(camera, config.width, config.height)
|
|
10561
|
+
});
|
|
10562
|
+
}
|
|
10557
10563
|
function estimateWavefrontPathTracingMemory(options = {}) {
|
|
10558
10564
|
const width = readPositiveInteger2("width", options.width, DEFAULT_WIDTH);
|
|
10559
10565
|
const height = readPositiveInteger2("height", options.height, DEFAULT_HEIGHT);
|
|
@@ -13474,7 +13480,7 @@ async function createWavefrontPathTracingComputeRenderer(options = {}) {
|
|
|
13474
13480
|
function updateCamera(cameraOptions = {}) {
|
|
13475
13481
|
progressive?.reset();
|
|
13476
13482
|
activeCameraOptions = cameraOptions;
|
|
13477
|
-
config =
|
|
13483
|
+
config = updateWavefrontCameraConfig(config, cameraOptions);
|
|
13478
13484
|
return config;
|
|
13479
13485
|
}
|
|
13480
13486
|
function getSnapshot() {
|