@joshtol/emotive-engine 3.2.1 → 3.2.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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@joshtol/emotive-engine",
4
- "version": "3.2.1",
4
+ "version": "3.2.2",
5
5
  "description": "Open-source animation engine for AI-controlled emotional visualizations with musical time synchronization",
6
6
  "main": "dist/emotive-mascot.umd.js",
7
7
  "module": "dist/mascot.js",
@@ -265,8 +265,8 @@ export class ThreeRenderer {
265
265
  // Try to load optional HDRI (.hdr format) for enhanced reflections
266
266
  // HDRI is optional - apps can place studio_1k.hdr in /hdri/ for better crystal reflections
267
267
  try {
268
- // RGBELoader is the standard HDR loader (deprecation warning is a Three.js internal issue)
269
- const { RGBELoader } = await import('three/examples/jsm/loaders/RGBELoader.js');
268
+ // HDRLoader replaces deprecated RGBELoader in Three.js r169+
269
+ const { HDRLoader } = await import('three/examples/jsm/loaders/HDRLoader.js');
270
270
 
271
271
  // Check if destroyed during import (React Strict Mode)
272
272
  if (this._destroyed) return;
@@ -275,7 +275,7 @@ export class ThreeRenderer {
275
275
  pmremGenerator.compileEquirectangularShader();
276
276
 
277
277
  try {
278
- const hdrLoader = new RGBELoader();
278
+ const hdrLoader = new HDRLoader();
279
279
  const assetBasePath = this.options.assetBasePath || '/assets';
280
280
  // HDRI is in public root, not in assets folder
281
281
  const hdriBasePath = assetBasePath.replace('/assets', '');
@@ -304,7 +304,7 @@ export class ThreeRenderer {
304
304
  pmremGenerator.dispose();
305
305
  }
306
306
  } catch (error) {
307
- // RGBELoader not available - use procedural envmap
307
+ // HDRLoader not available - use procedural envmap
308
308
  }
309
309
 
310
310
  // Check if destroyed before fallback (React Strict Mode)