rayzee 5.8.3 → 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/dist/rayzee.es.js CHANGED
@@ -11937,10 +11937,10 @@ async function ml() {
11937
11937
  }
11938
11938
  var hl = new Float32Array(3), gl = {
11939
11939
  BASE_URL: "https://cdn.jsdelivr.net/npm/denoiser/tzas/",
11940
- QUALITY_SUFFIXES: {
11941
- fast: "_small",
11942
- balance: "",
11943
- high: "_large"
11940
+ QUALITY_MODELS: {
11941
+ fast: "rt_hdr_calb_cnrm_small",
11942
+ balance: "rt_hdr_calb_cnrm",
11943
+ high: "rt_hdr_calb_cnrm_large"
11944
11944
  },
11945
11945
  DEFAULT_OPTIONS: {
11946
11946
  enableOIDN: !0,
@@ -12030,14 +12030,14 @@ var hl = new Float32Array(3), gl = {
12030
12030
  }
12031
12031
  }
12032
12032
  _generateTzaUrl() {
12033
- let { BASE_URL: e, QUALITY_SUFFIXES: t } = gl;
12034
- return `${e}rt_hdr_alb_nrm${t[this.quality] || ""}.tza`;
12033
+ let { BASE_URL: e, QUALITY_MODELS: t } = gl;
12034
+ return `${e}${t[this.quality] || t.balance}.tza`;
12035
12035
  }
12036
12036
  async updateConfiguration(e) {
12037
12037
  Object.keys(e).some((t) => this.config[t] !== e[t]) && (Object.assign(this.config, e), this.quality = this.config.oidnQuality, this.debugGbufferMaps = this.config.debugGbufferMaps, this.tileSize = this.config.tileSize, await this._setupUNetDenoiser());
12038
12038
  }
12039
12039
  async updateQuality(e) {
12040
- if (!Object.prototype.hasOwnProperty.call(gl.QUALITY_SUFFIXES, e)) throw Error(`Invalid quality setting: ${e}. Must be one of: ${Object.keys(gl.QUALITY_SUFFIXES).join(", ")}`);
12040
+ if (!Object.prototype.hasOwnProperty.call(gl.QUALITY_MODELS, e)) throw Error(`Invalid quality setting: ${e}. Must be one of: ${Object.keys(gl.QUALITY_MODELS).join(", ")}`);
12041
12041
  await this.updateConfiguration({ oidnQuality: e });
12042
12042
  }
12043
12043
  async start() {