@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.cjs
CHANGED
|
@@ -10646,6 +10646,12 @@ function resolveCamera(input, width, height) {
|
|
|
10646
10646
|
tanHalfFovY
|
|
10647
10647
|
});
|
|
10648
10648
|
}
|
|
10649
|
+
function updateWavefrontCameraConfig(config, camera) {
|
|
10650
|
+
return Object.freeze({
|
|
10651
|
+
...config,
|
|
10652
|
+
camera: resolveCamera(camera, config.width, config.height)
|
|
10653
|
+
});
|
|
10654
|
+
}
|
|
10649
10655
|
function estimateWavefrontPathTracingMemory(options = {}) {
|
|
10650
10656
|
const width = readPositiveInteger2("width", options.width, DEFAULT_WIDTH);
|
|
10651
10657
|
const height = readPositiveInteger2("height", options.height, DEFAULT_HEIGHT);
|
|
@@ -13566,7 +13572,7 @@ async function createWavefrontPathTracingComputeRenderer(options = {}) {
|
|
|
13566
13572
|
function updateCamera(cameraOptions = {}) {
|
|
13567
13573
|
progressive?.reset();
|
|
13568
13574
|
activeCameraOptions = cameraOptions;
|
|
13569
|
-
config =
|
|
13575
|
+
config = updateWavefrontCameraConfig(config, cameraOptions);
|
|
13570
13576
|
return config;
|
|
13571
13577
|
}
|
|
13572
13578
|
function getSnapshot() {
|