rayzee 5.3.4 → 5.3.5
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/package.json
CHANGED
package/src/PathTracerApp.js
CHANGED
|
@@ -645,8 +645,6 @@ export class PathTracerApp extends EventDispatcher {
|
|
|
645
645
|
this.cameraManager.camera.aspect = width / height;
|
|
646
646
|
this.cameraManager.camera.updateProjectionMatrix();
|
|
647
647
|
|
|
648
|
-
this.denoisingManager?.syncCanvasStyle( width, height );
|
|
649
|
-
|
|
650
648
|
// Overlay helpers always render at display resolution
|
|
651
649
|
const dpr = window.devicePixelRatio || 1;
|
|
652
650
|
this.overlayManager?.setSize(
|
|
@@ -679,8 +677,6 @@ export class PathTracerApp extends EventDispatcher {
|
|
|
679
677
|
|
|
680
678
|
setCanvasSize( width, height ) {
|
|
681
679
|
|
|
682
|
-
this.denoisingManager?.syncCanvasStyle( width, height );
|
|
683
|
-
|
|
684
680
|
if ( width === 0 || height === 0 ) return;
|
|
685
681
|
|
|
686
682
|
this.renderer.setPixelRatio( 1.0 );
|
|
@@ -64,8 +64,10 @@ export class DenoisingManager extends EventDispatcher {
|
|
|
64
64
|
const dc = document.createElement( 'canvas' );
|
|
65
65
|
dc.width = mainCanvas.width;
|
|
66
66
|
dc.height = mainCanvas.height;
|
|
67
|
-
dc.style.
|
|
68
|
-
dc.style.
|
|
67
|
+
dc.style.position = 'absolute';
|
|
68
|
+
dc.style.inset = '0';
|
|
69
|
+
dc.style.width = '100%';
|
|
70
|
+
dc.style.height = '100%';
|
|
69
71
|
|
|
70
72
|
parent.insertBefore( dc, mainCanvas );
|
|
71
73
|
return dc;
|
|
@@ -86,21 +88,6 @@ export class DenoisingManager extends EventDispatcher {
|
|
|
86
88
|
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
/**
|
|
90
|
-
* Syncs the denoiser canvas CSS dimensions to match display size.
|
|
91
|
-
* @param {number} width
|
|
92
|
-
* @param {number} height
|
|
93
|
-
*/
|
|
94
|
-
syncCanvasStyle( width, height ) {
|
|
95
|
-
|
|
96
|
-
if ( this.denoiserCanvas ) {
|
|
97
|
-
|
|
98
|
-
this.denoiserCanvas.style.width = `${width}px`;
|
|
99
|
-
this.denoiserCanvas.style.height = `${height}px`;
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
}
|
|
104
91
|
|
|
105
92
|
/**
|
|
106
93
|
* Restores the denoiser canvas to base render resolution after upscaling.
|