rayzee 4.8.13 → 4.8.14
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/README.md +2 -0
- package/dist/rayzee.es.js +9 -2
- package/dist/rayzee.es.js.map +1 -1
- package/dist/rayzee.umd.js +1 -1
- package/dist/rayzee.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/PathTracerApp.js +9 -1
- package/src/RenderSettings.js +1 -0
package/package.json
CHANGED
package/src/PathTracerApp.js
CHANGED
|
@@ -67,6 +67,7 @@ export class PathTracerApp extends EventDispatcher {
|
|
|
67
67
|
* @param {HTMLCanvasElement} canvas - Canvas element for rendering
|
|
68
68
|
* @param {Object} [options] - Engine options
|
|
69
69
|
* @param {boolean} [options.autoResize=true] - Automatically listen for window resize events
|
|
70
|
+
* @param {boolean} [options.showStats=true] - Show the performance stats panel
|
|
70
71
|
* @param {HTMLElement} [options.statsContainer] - DOM element to append the stats panel to (defaults to document.body)
|
|
71
72
|
*/
|
|
72
73
|
constructor( canvas, options = {} ) {
|
|
@@ -76,6 +77,7 @@ export class PathTracerApp extends EventDispatcher {
|
|
|
76
77
|
this.canvas = canvas;
|
|
77
78
|
this.denoiserCanvas = null;
|
|
78
79
|
this._autoResize = options.autoResize !== false;
|
|
80
|
+
this._showStats = options.showStats !== false;
|
|
79
81
|
this._statsContainer = options.statsContainer || null;
|
|
80
82
|
|
|
81
83
|
// ── Settings (single source of truth for all render parameters) ──
|
|
@@ -507,7 +509,7 @@ export class PathTracerApp extends EventDispatcher {
|
|
|
507
509
|
this.stages.pathTracer.setupMaterial();
|
|
508
510
|
|
|
509
511
|
// Setup stats panel
|
|
510
|
-
this._initStats();
|
|
512
|
+
if ( this._showStats ) this._initStats();
|
|
511
513
|
|
|
512
514
|
this.isInitialized = true;
|
|
513
515
|
console.log( 'WebGPU Path Tracer App initialized' );
|
|
@@ -2236,6 +2238,12 @@ export class PathTracerApp extends EventDispatcher {
|
|
|
2236
2238
|
|
|
2237
2239
|
},
|
|
2238
2240
|
|
|
2241
|
+
handleInteractionModeEnabled: ( value ) => {
|
|
2242
|
+
|
|
2243
|
+
this.setInteractionModeEnabled( value );
|
|
2244
|
+
|
|
2245
|
+
},
|
|
2246
|
+
|
|
2239
2247
|
};
|
|
2240
2248
|
|
|
2241
2249
|
}
|
package/src/RenderSettings.js
CHANGED
|
@@ -40,6 +40,7 @@ const SETTING_ROUTES = {
|
|
|
40
40
|
|
|
41
41
|
// ── Multi-stage / special handling ────────────────────────────
|
|
42
42
|
|
|
43
|
+
interactionModeEnabled: { handler: 'handleInteractionModeEnabled', reset: false },
|
|
43
44
|
maxSamples: { handler: 'handleMaxSamples', reset: false },
|
|
44
45
|
transparentBackground: { handler: 'handleTransparentBackground' },
|
|
45
46
|
exposure: { handler: 'handleExposure' },
|