babylonjs-loaders 8.6.1 → 8.7.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.
@@ -1849,6 +1849,7 @@ export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_transmission"
1849
1849
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission";
1850
1850
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_volume";
1851
1851
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_dispersion";
1852
+ export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_materials_diffuse_roughness";
1852
1853
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_mesh_quantization";
1853
1854
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_texture_basisu";
1854
1855
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_texture_transform";
@@ -3502,6 +3503,52 @@ export class EXT_mesh_gpu_instancing implements IGLTFLoaderExtension {
3502
3503
  loadNodeAsync(context: string, node: INode, assign: (babylonTransformNode: TransformNode) => void): Nullable<Promise<TransformNode>>;
3503
3504
  }
3504
3505
 
3506
+ }
3507
+ declare module "babylonjs-loaders/glTF/2.0/Extensions/EXT_materials_diffuse_roughness" {
3508
+ import { Nullable } from "babylonjs/types";
3509
+ import { Material } from "babylonjs/Materials/material";
3510
+ import { IMaterial } from "babylonjs-loaders/glTF/2.0/glTFLoaderInterfaces";
3511
+ import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
3512
+ import { GLTFLoader } from "babylonjs-loaders/glTF/2.0/glTFLoader";
3513
+ module "babylonjs-loaders/glTF/glTFFileLoader" {
3514
+ interface GLTFLoaderExtensionOptions {
3515
+ /**
3516
+ * Defines options for the EXT_materials_diffuse_roughness extension.
3517
+ */
3518
+ ["EXT_materials_diffuse_roughness"]: {};
3519
+ }
3520
+ }
3521
+ /**
3522
+ * [Specification](https://github.com/KhronosGroup/glTF/blob/fdee35425ae560ea378092e38977216d63a094ec/extensions/2.0/Khronos/EXT_materials_diffuse_roughness/README.md)
3523
+ * @experimental
3524
+ */
3525
+ export class EXT_materials_diffuse_roughness implements IGLTFLoaderExtension {
3526
+ /**
3527
+ * The name of this extension.
3528
+ */
3529
+ readonly name: string;
3530
+ /**
3531
+ * Defines whether this extension is enabled.
3532
+ */
3533
+ enabled: boolean;
3534
+ /**
3535
+ * Defines a number that determines the order the extensions are applied.
3536
+ */
3537
+ order: number;
3538
+ private _loader;
3539
+ /**
3540
+ * @internal
3541
+ */
3542
+ constructor(loader: GLTFLoader);
3543
+ /** @internal */
3544
+ dispose(): void;
3545
+ /**
3546
+ * @internal
3547
+ */
3548
+ loadMaterialPropertiesAsync(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
3549
+ private _loadDiffuseRoughnessPropertiesAsync;
3550
+ }
3551
+
3505
3552
  }
3506
3553
  declare module "babylonjs-loaders/glTF/2.0/Extensions/EXT_lights_image_based" {
3507
3554
  import { Nullable } from "babylonjs/types";
@@ -5406,15 +5453,18 @@ export type BVHLoadingOptions = {
5406
5453
  declare module "babylonjs-loaders/BVH/bvhLoader" {
5407
5454
  import { Skeleton } from "babylonjs/Bones/skeleton";
5408
5455
  import { Scene } from "babylonjs/scene";
5456
+ import { Nullable } from "babylonjs/types";
5409
5457
  import { BVHLoadingOptions } from "babylonjs-loaders/BVH/bvhLoadingOptions";
5458
+ import { AssetContainer } from "babylonjs/assetContainer";
5410
5459
  /**
5411
5460
  * Reads a BVH file, returns a skeleton
5412
5461
  * @param text - The BVH file content
5413
5462
  * @param scene - The scene to add the skeleton to
5463
+ * @param assetContainer - The asset container to add the skeleton to
5414
5464
  * @param loadingOptions - The loading options
5415
5465
  * @returns The skeleton
5416
5466
  */
5417
- export function ReadBvh(text: string, scene: Scene, loadingOptions: BVHLoadingOptions): Skeleton;
5467
+ export function ReadBvh(text: string, scene: Scene, assetContainer: Nullable<AssetContainer>, loadingOptions: BVHLoadingOptions): Skeleton;
5418
5468
 
5419
5469
  }
5420
5470
  declare module "babylonjs-loaders/BVH/bvhFileLoader.metadata" {
@@ -8900,6 +8950,50 @@ declare module BABYLON {
8900
8950
  ["EXT_mesh_gpu_instancing"]: {};
8901
8951
  }
8902
8952
 
8953
+ }
8954
+ declare module BABYLON.GLTF2.Loader.Extensions {
8955
+ /**
8956
+ * [Specification](https://github.com/KhronosGroup/glTF/blob/fdee35425ae560ea378092e38977216d63a094ec/extensions/2.0/Khronos/EXT_materials_diffuse_roughness/README.md)
8957
+ * @experimental
8958
+ */
8959
+ export class EXT_materials_diffuse_roughness implements BABYLON.GLTF2.IGLTFLoaderExtension {
8960
+ /**
8961
+ * The name of this extension.
8962
+ */
8963
+ readonly name = "EXT_materials_diffuse_roughness";
8964
+ /**
8965
+ * Defines whether this extension is enabled.
8966
+ */
8967
+ enabled: boolean;
8968
+ /**
8969
+ * Defines a number that determines the order the extensions are applied.
8970
+ */
8971
+ order: number;
8972
+ private _loader;
8973
+ /**
8974
+ * @internal
8975
+ */
8976
+ constructor(loader: BABYLON.GLTF2.GLTFLoader);
8977
+ /** @internal */
8978
+ dispose(): void;
8979
+ /**
8980
+ * @internal
8981
+ */
8982
+ loadMaterialPropertiesAsync(context: string, material: BABYLON.GLTF2.Loader.IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
8983
+ private _loadDiffuseRoughnessPropertiesAsync;
8984
+ }
8985
+
8986
+
8987
+
8988
+ }
8989
+ declare module BABYLON {
8990
+ interface GLTFLoaderExtensionOptions {
8991
+ /**
8992
+ * Defines options for the EXT_materials_diffuse_roughness extension.
8993
+ */
8994
+ ["EXT_materials_diffuse_roughness"]: {};
8995
+ }
8996
+
8903
8997
  }
8904
8998
  declare module BABYLON.GLTF2.Loader.Extensions {
8905
8999
  /** @internal */
@@ -10739,10 +10833,11 @@ declare module BABYLON {
10739
10833
  * Reads a BVH file, returns a skeleton
10740
10834
  * @param text - The BVH file content
10741
10835
  * @param scene - The scene to add the skeleton to
10836
+ * @param assetContainer - The asset container to add the skeleton to
10742
10837
  * @param loadingOptions - The loading options
10743
10838
  * @returns The skeleton
10744
10839
  */
10745
- export function ReadBvh(text: string, scene: Scene, loadingOptions: BVHLoadingOptions): Skeleton;
10840
+ export function ReadBvh(text: string, scene: Scene, assetContainer: Nullable<AssetContainer>, loadingOptions: BVHLoadingOptions): Skeleton;
10746
10841
 
10747
10842
 
10748
10843
  export var BVHFileLoaderMetadata: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "8.6.1",
3
+ "version": "8.7.0",
4
4
  "main": "babylonjs.loaders.js",
5
5
  "types": "babylonjs.loaders.module.d.ts",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.loaders.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^8.6.1",
19
- "babylonjs-gltf2interface": "^8.6.1"
18
+ "babylonjs": "^8.7.0",
19
+ "babylonjs-gltf2interface": "^8.7.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",