rayzee 5.9.0 → 5.9.1

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.0",
3
+ "version": "5.9.1",
4
4
  "type": "module",
5
5
  "description": "Real-time WebGPU path tracing engine built on Three.js",
6
6
  "main": "dist/rayzee.umd.js",
@@ -20,13 +20,13 @@ import { TONE_MAP_FNS, linearToSRGB, applySaturation } from '../Processor/ToneMa
20
20
  /** Reusable RGB output buffer (avoids per-pixel allocation). */
21
21
  const _tmOut = new Float32Array( 3 );
22
22
 
23
- // Constants for better maintainability
24
23
  const MODEL_CONFIG = {
25
24
  BASE_URL: 'https://cdn.jsdelivr.net/npm/denoiser/tzas/',
26
- QUALITY_SUFFIXES: {
27
- fast: '_small',
28
- balance: '',
29
- high: '_large'
25
+ // clean-aux models — first-hit albedo/normal are deterministic per pixel
26
+ QUALITY_MODELS: {
27
+ fast: 'rt_hdr_calb_cnrm_small',
28
+ balance: 'rt_hdr_calb_cnrm',
29
+ high: 'rt_hdr_calb_cnrm_large'
30
30
  },
31
31
  DEFAULT_OPTIONS: {
32
32
  enableOIDN: true,
@@ -249,11 +249,9 @@ export class OIDNDenoiser extends EventDispatcher {
249
249
 
250
250
  _generateTzaUrl() {
251
251
 
252
- const { BASE_URL, QUALITY_SUFFIXES } = MODEL_CONFIG;
253
-
254
- const modelSize = QUALITY_SUFFIXES[ this.quality ] || '';
255
-
256
- return `${BASE_URL}rt_hdr_alb_nrm${modelSize}.tza`;
252
+ const { BASE_URL, QUALITY_MODELS } = MODEL_CONFIG;
253
+ const modelName = QUALITY_MODELS[ this.quality ] || QUALITY_MODELS.balance;
254
+ return `${BASE_URL}${modelName}.tza`;
257
255
 
258
256
  }
259
257
 
@@ -277,9 +275,9 @@ export class OIDNDenoiser extends EventDispatcher {
277
275
 
278
276
  async updateQuality( value ) {
279
277
 
280
- if ( ! Object.prototype.hasOwnProperty.call( MODEL_CONFIG.QUALITY_SUFFIXES, value ) ) {
278
+ if ( ! Object.prototype.hasOwnProperty.call( MODEL_CONFIG.QUALITY_MODELS, value ) ) {
281
279
 
282
- throw new Error( `Invalid quality setting: ${value}. Must be one of: ${Object.keys( MODEL_CONFIG.QUALITY_SUFFIXES ).join( ', ' )}` );
280
+ throw new Error( `Invalid quality setting: ${value}. Must be one of: ${Object.keys( MODEL_CONFIG.QUALITY_MODELS ).join( ', ' )}` );
283
281
 
284
282
  }
285
283