babylonjs-loaders 9.27.0 → 9.28.0

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.
@@ -12549,6 +12549,12 @@ declare namespace BABYLON {
12549
12549
  * Invert Y-Axis of referenced textures on load
12550
12550
  */
12551
12551
  invertTextureY: boolean;
12552
+ /**
12553
+ * Wait for referenced textures to finish loading before completing the OBJ load.
12554
+ * When enabled, texture loading failures follow materialLoadingFailsSilently.
12555
+ * Defaults to false for backwards compatibility.
12556
+ */
12557
+ waitForTextures?: boolean;
12552
12558
  /**
12553
12559
  * Include in meshes the vertex colors available in some OBJ files. This is not part of OBJ standard.
12554
12560
  */
@@ -12607,6 +12613,11 @@ declare namespace BABYLON {
12607
12613
  */
12608
12614
  static get INVERT_TEXTURE_Y(): boolean;
12609
12615
  static set INVERT_TEXTURE_Y(value: boolean);
12616
+ /**
12617
+ * Wait for referenced textures to finish loading before completing the OBJ load.
12618
+ * Defaults to false for backwards compatibility.
12619
+ */
12620
+ static WAIT_FOR_TEXTURES: boolean;
12610
12621
  /**
12611
12622
  * Include in meshes the vertex colors available in some OBJ files. This is not part of OBJ standard.
12612
12623
  */
@@ -12761,8 +12772,12 @@ declare namespace BABYLON {
12761
12772
  * @param data defines the mtl data to parse
12762
12773
  * @param rootUrl defines the rooturl to use in order to load relative dependencies
12763
12774
  * @param assetContainer defines the asset container to store the material in (can be null)
12775
+ * @param invertTextureY defines whether referenced textures are inverted on the Y axis
12776
+ * @param materialNames defines which materials to load, or all materials if omitted
12777
+ * @param trackTextureLoading collects texture loading promises and starts delayed textures when true; defaults to false
12778
+ * @returns the texture loading promises, or an empty array when trackTextureLoading is false
12764
12779
  */
12765
- parseMTL(scene: Scene, data: string | ArrayBuffer, rootUrl: string, assetContainer: Nullable<AssetContainer>): void;
12780
+ parseMTL(scene: Scene, data: string | ArrayBuffer, rootUrl: string, assetContainer: Nullable<AssetContainer>, invertTextureY?: boolean, materialNames?: ReadonlySet<string>, trackTextureLoading?: boolean): Promise<void>[];
12766
12781
  /**
12767
12782
  * Gets the texture for the material.
12768
12783
  *
@@ -12772,6 +12787,9 @@ declare namespace BABYLON {
12772
12787
  * @param rootUrl The root url to load from
12773
12788
  * @param value The value stored in the mtl
12774
12789
  * @param scene
12790
+ * @param assetContainer The asset container to store the texture in
12791
+ * @param invertTextureY Whether to invert the texture on the Y axis
12792
+ * @param textureLoadPromises The promises to wait for when loading asynchronously
12775
12793
  * @returns The Texture
12776
12794
  */
12777
12795
  private static _GetTexture;