rayzee 5.9.1 → 5.9.2

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.9.1",
3
+ "version": "5.9.2",
4
4
  "type": "module",
5
5
  "description": "Real-time WebGPU path tracing engine built on Three.js",
6
6
  "main": "dist/rayzee.umd.js",
@@ -439,8 +439,8 @@ export const DEFAULT_TEXTURE_MATRIX = [ 0, 0, 1, 1, 0, 0, 0, 1 ];
439
439
  // Render mode configurations
440
440
  export const FINAL_RENDER_CONFIG = {
441
441
  maxSamples: 30, bounces: 20, transmissiveBounces: 8, samplesPerPixel: 1,
442
- renderMode: 1, enableAlphaShadows: true, tiles: 3, tilesHelper: false,
443
- enableOIDN: true, oidnQuality: 'balance',
442
+ renderMode: 1, enableAlphaShadows: true, tiles: 3, tilesHelper: true,
443
+ enableOIDN: true, oidnQuality: 'high',
444
444
  interactionModeEnabled: false,
445
445
  };
446
446
 
@@ -657,14 +657,6 @@ export class OIDNDenoiser extends EventDispatcher {
657
657
  // row-by-row copyBufferToBuffer (no stride support in WebGPU buffer copies).
658
658
  if ( ! outputData?.data || ! tile ) return;
659
659
 
660
- // Emit tile progress for OverlayManager's TileHelper
661
- this.dispatchEvent( {
662
- type: 'tileProgress',
663
- tile,
664
- imageWidth: outputData.width,
665
- imageHeight: outputData.height
666
- } );
667
-
668
660
  const device = this.gpuDevice;
669
661
  const fullWidth = outputData.width;
670
662
  const fullHeight = outputData.height;
@@ -745,6 +737,14 @@ export class OIDNDenoiser extends EventDispatcher {
745
737
  this._pendingStagingBuffers.delete( staging );
746
738
  this.ctx.putImageData( tileImageData, tile.x, tile.y );
747
739
 
740
+ // Emit tile progress for OverlayManager's TileHelper
741
+ this.dispatchEvent( {
742
+ type: 'tileProgress',
743
+ tile: { x: tile.x, y: tile.y, width: clampedW, height: clampedH },
744
+ imageWidth: fullWidth,
745
+ imageHeight: fullHeight
746
+ } );
747
+
748
748
  } ).catch( () => {
749
749
 
750
750
  // mapAsync rejected (abort or GPU lost) — destroy the buffer