mbt-3d 0.4.6 → 0.4.7

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/index.d.ts CHANGED
@@ -663,6 +663,14 @@ declare interface PointLightConfig extends BaseLightConfig {
663
663
 
664
664
  export declare function preloadModel(url: string): void;
665
665
 
666
+ /**
667
+ * Preload standard (non-KTX2) textures into the global cache.
668
+ * Call this as early as possible (e.g. when inventory data loads) to ensure
669
+ * textures are ready before the model is mounted.
670
+ * KTX2 textures require a WebGL renderer — preload them via usePreloadTextures hook instead.
671
+ */
672
+ export declare function preloadTextures(textures: Record<string, MaterialTextures_2 | string>): void;
673
+
666
674
  /**
667
675
  * WebGL renderer settings for light response and color mapping.
668
676
  * Useful for physically based lighting tests.