rayzee 5.3.3 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rayzee",
3
- "version": "5.3.3",
3
+ "version": "5.3.5",
4
4
  "type": "module",
5
5
  "description": "Real-time WebGPU path tracing engine built on Three.js",
6
6
  "main": "dist/rayzee.umd.js",
@@ -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,10 +677,6 @@ export class PathTracerApp extends EventDispatcher {
679
677
 
680
678
  setCanvasSize( width, height ) {
681
679
 
682
- this.canvas.style.width = `${width}px`;
683
- this.canvas.style.height = `${height}px`;
684
- this.denoisingManager?.syncCanvasStyle( width, height );
685
-
686
680
  if ( width === 0 || height === 0 ) return;
687
681
 
688
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.width = `${mainCanvas.clientWidth}px`;
68
- dc.style.height = `${mainCanvas.clientHeight}px`;
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.