babylonjs-loaders 6.32.0 → 6.33.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.
@@ -867,6 +867,7 @@ export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_variants";
867
867
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_transmission";
868
868
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_translucency";
869
869
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_volume";
870
+ export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_dispersion";
870
871
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_mesh_quantization";
871
872
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_texture_basisu";
872
873
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_texture_transform";
@@ -1032,6 +1033,9 @@ export const animationPointerTree: {
1032
1033
  attenuationDistance: MaterialAnimationPropertyInfo[];
1033
1034
  thicknessFactor: MaterialAnimationPropertyInfo[];
1034
1035
  };
1036
+ KHR_materials_dispersion: {
1037
+ dispersion: MaterialAnimationPropertyInfo[];
1038
+ };
1035
1039
  KHR_materials_iridescence: {
1036
1040
  iridescenceFactor: MaterialAnimationPropertyInfo[];
1037
1041
  iridescenceIor: MaterialAnimationPropertyInfo[];
@@ -1233,6 +1237,44 @@ export class KHR_materials_clearcoat implements IGLTFLoaderExtension {
1233
1237
  private _loadClearCoatPropertiesAsync;
1234
1238
  }
1235
1239
 
1240
+ }
1241
+ declare module "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_dispersion" {
1242
+ import { Nullable } from "babylonjs/types";
1243
+ import { Material } from "babylonjs/Materials/material";
1244
+ import { IMaterial } from "babylonjs-loaders/glTF/2.0/glTFLoaderInterfaces";
1245
+ import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
1246
+ import { GLTFLoader } from "babylonjs-loaders/glTF/2.0/glTFLoader";
1247
+ /**
1248
+ * [Specification](https://github.com/KhronosGroup/glTF/blob/87bd64a7f5e23c84b6aef2e6082069583ed0ddb4/extensions/2.0/Khronos/KHR_materials_dispersion/README.md)
1249
+ * @experimental
1250
+ */
1251
+ export class KHR_materials_dispersion implements IGLTFLoaderExtension {
1252
+ /**
1253
+ * The name of this extension.
1254
+ */
1255
+ readonly name: string;
1256
+ /**
1257
+ * Defines whether this extension is enabled.
1258
+ */
1259
+ enabled: boolean;
1260
+ /**
1261
+ * Defines a number that determines the order the extensions are applied.
1262
+ */
1263
+ order: number;
1264
+ private _loader;
1265
+ /**
1266
+ * @internal
1267
+ */
1268
+ constructor(loader: GLTFLoader);
1269
+ /** @internal */
1270
+ dispose(): void;
1271
+ /**
1272
+ * @internal
1273
+ */
1274
+ loadMaterialPropertiesAsync(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
1275
+ private _loadDispersionPropertiesAsync;
1276
+ }
1277
+
1236
1278
  }
1237
1279
  declare module "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength" {
1238
1280
  import { Nullable } from "babylonjs/types";
@@ -4866,6 +4908,9 @@ declare module BABYLON.GLTF2.Loader.Extensions {
4866
4908
  attenuationDistance: MaterialAnimationPropertyInfo[];
4867
4909
  thicknessFactor: MaterialAnimationPropertyInfo[];
4868
4910
  };
4911
+ KHR_materials_dispersion: {
4912
+ dispersion: MaterialAnimationPropertyInfo[];
4913
+ };
4869
4914
  KHR_materials_iridescence: {
4870
4915
  iridescenceFactor: MaterialAnimationPropertyInfo[];
4871
4916
  iridescenceIor: MaterialAnimationPropertyInfo[];
@@ -5066,6 +5111,44 @@ declare module BABYLON.GLTF2.Loader.Extensions {
5066
5111
 
5067
5112
 
5068
5113
 
5114
+ }
5115
+ declare module BABYLON {
5116
+
5117
+ }
5118
+ declare module BABYLON.GLTF2.Loader.Extensions {
5119
+ /**
5120
+ * [Specification](https://github.com/KhronosGroup/glTF/blob/87bd64a7f5e23c84b6aef2e6082069583ed0ddb4/extensions/2.0/Khronos/KHR_materials_dispersion/README.md)
5121
+ * @experimental
5122
+ */
5123
+ export class KHR_materials_dispersion implements BABYLON.GLTF2.IGLTFLoaderExtension {
5124
+ /**
5125
+ * The name of this extension.
5126
+ */
5127
+ readonly name = "KHR_materials_dispersion";
5128
+ /**
5129
+ * Defines whether this extension is enabled.
5130
+ */
5131
+ enabled: boolean;
5132
+ /**
5133
+ * Defines a number that determines the order the extensions are applied.
5134
+ */
5135
+ order: number;
5136
+ private _loader;
5137
+ /**
5138
+ * @internal
5139
+ */
5140
+ constructor(loader: BABYLON.GLTF2.GLTFLoader);
5141
+ /** @internal */
5142
+ dispose(): void;
5143
+ /**
5144
+ * @internal
5145
+ */
5146
+ loadMaterialPropertiesAsync(context: string, material: BABYLON.GLTF2.Loader.IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
5147
+ private _loadDispersionPropertiesAsync;
5148
+ }
5149
+
5150
+
5151
+
5069
5152
  }
5070
5153
  declare module BABYLON {
5071
5154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "6.32.0",
3
+ "version": "6.33.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": "^6.32.0",
19
- "babylonjs-gltf2interface": "^6.32.0"
18
+ "babylonjs": "^6.33.0",
19
+ "babylonjs-gltf2interface": "^6.33.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",