babylonjs-loaders 7.0.0 → 7.2.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.
- package/babylon.glTF1FileLoader.js +2 -2
- package/babylon.glTF1FileLoader.min.js +1 -1
- package/babylon.glTF1FileLoader.min.js.map +1 -1
- package/babylon.glTF2FileLoader.js +125 -58
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +125 -58
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.d.ts +47 -0
- package/babylonjs.loaders.js +125 -58
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/babylonjs.loaders.module.d.ts +95 -0
- package/package.json +3 -3
|
@@ -788,6 +788,35 @@ export class EXT_meshopt_compression implements IGLTFLoaderExtension {
|
|
|
788
788
|
loadBufferViewAsync(context: string, bufferView: IBufferView): Nullable<Promise<ArrayBufferView>>;
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
+
}
|
|
792
|
+
declare module "babylonjs-loaders/glTF/2.0/Extensions/EXT_texture_avif" {
|
|
793
|
+
import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
|
|
794
|
+
import { GLTFLoader } from "babylonjs-loaders/glTF/2.0/glTFLoader";
|
|
795
|
+
import { ITexture } from "babylonjs-loaders/glTF/2.0/glTFLoaderInterfaces";
|
|
796
|
+
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
797
|
+
import { Nullable } from "babylonjs/types";
|
|
798
|
+
/**
|
|
799
|
+
* [glTF PR](https://github.com/KhronosGroup/glTF/pull/2235)
|
|
800
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_texture_avif/README.md)
|
|
801
|
+
*/
|
|
802
|
+
export class EXT_texture_avif implements IGLTFLoaderExtension {
|
|
803
|
+
/** The name of this extension. */
|
|
804
|
+
readonly name: string;
|
|
805
|
+
/** Defines whether this extension is enabled. */
|
|
806
|
+
enabled: boolean;
|
|
807
|
+
private _loader;
|
|
808
|
+
/**
|
|
809
|
+
* @internal
|
|
810
|
+
*/
|
|
811
|
+
constructor(loader: GLTFLoader);
|
|
812
|
+
/** @internal */
|
|
813
|
+
dispose(): void;
|
|
814
|
+
/**
|
|
815
|
+
* @internal
|
|
816
|
+
*/
|
|
817
|
+
_loadTextureAsync(context: string, texture: ITexture, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
|
|
818
|
+
}
|
|
819
|
+
|
|
791
820
|
}
|
|
792
821
|
declare module "babylonjs-loaders/glTF/2.0/Extensions/EXT_texture_webp" {
|
|
793
822
|
import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
|
|
@@ -902,6 +931,7 @@ export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_lights_image_based";
|
|
|
902
931
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing";
|
|
903
932
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_meshopt_compression";
|
|
904
933
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_texture_webp";
|
|
934
|
+
export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_texture_avif";
|
|
905
935
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression";
|
|
906
936
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_lights_punctual";
|
|
907
937
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness";
|
|
@@ -1147,6 +1177,24 @@ export const animationPointerTree: {
|
|
|
1147
1177
|
iridescenceIor: MaterialAnimationPropertyInfo[];
|
|
1148
1178
|
iridescenceThicknessMinimum: MaterialAnimationPropertyInfo[];
|
|
1149
1179
|
iridescenceThicknessMaximum: MaterialAnimationPropertyInfo[];
|
|
1180
|
+
iridescenceTexture: {
|
|
1181
|
+
extensions: {
|
|
1182
|
+
KHR_texture_transform: {
|
|
1183
|
+
scale: MaterialAnimationPropertyInfo[];
|
|
1184
|
+
offset: MaterialAnimationPropertyInfo[];
|
|
1185
|
+
rotation: MaterialAnimationPropertyInfo[];
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1189
|
+
iridescenceThicknessTexture: {
|
|
1190
|
+
extensions: {
|
|
1191
|
+
KHR_texture_transform: {
|
|
1192
|
+
scale: MaterialAnimationPropertyInfo[];
|
|
1193
|
+
offset: MaterialAnimationPropertyInfo[];
|
|
1194
|
+
rotation: MaterialAnimationPropertyInfo[];
|
|
1195
|
+
};
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1150
1198
|
};
|
|
1151
1199
|
KHR_materials_sheen: {
|
|
1152
1200
|
sheenColorFactor: MaterialAnimationPropertyInfo[];
|
|
@@ -4980,6 +5028,35 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
4980
5028
|
|
|
4981
5029
|
|
|
4982
5030
|
|
|
5031
|
+
}
|
|
5032
|
+
declare module BABYLON {
|
|
5033
|
+
|
|
5034
|
+
}
|
|
5035
|
+
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
5036
|
+
/**
|
|
5037
|
+
* [glTF PR](https://github.com/KhronosGroup/glTF/pull/2235)
|
|
5038
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_texture_avif/README.md)
|
|
5039
|
+
*/
|
|
5040
|
+
export class EXT_texture_avif implements BABYLON.GLTF2.IGLTFLoaderExtension {
|
|
5041
|
+
/** The name of this extension. */
|
|
5042
|
+
readonly name = "EXT_texture_avif";
|
|
5043
|
+
/** Defines whether this extension is enabled. */
|
|
5044
|
+
enabled: boolean;
|
|
5045
|
+
private _loader;
|
|
5046
|
+
/**
|
|
5047
|
+
* @internal
|
|
5048
|
+
*/
|
|
5049
|
+
constructor(loader: BABYLON.GLTF2.GLTFLoader);
|
|
5050
|
+
/** @internal */
|
|
5051
|
+
dispose(): void;
|
|
5052
|
+
/**
|
|
5053
|
+
* @internal
|
|
5054
|
+
*/
|
|
5055
|
+
_loadTextureAsync(context: string, texture: BABYLON.GLTF2.Loader.ITexture, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
|
|
5056
|
+
}
|
|
5057
|
+
|
|
5058
|
+
|
|
5059
|
+
|
|
4983
5060
|
}
|
|
4984
5061
|
declare module BABYLON {
|
|
4985
5062
|
|
|
@@ -5322,6 +5399,24 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
5322
5399
|
iridescenceIor: MaterialAnimationPropertyInfo[];
|
|
5323
5400
|
iridescenceThicknessMinimum: MaterialAnimationPropertyInfo[];
|
|
5324
5401
|
iridescenceThicknessMaximum: MaterialAnimationPropertyInfo[];
|
|
5402
|
+
iridescenceTexture: {
|
|
5403
|
+
extensions: {
|
|
5404
|
+
KHR_texture_transform: {
|
|
5405
|
+
scale: MaterialAnimationPropertyInfo[];
|
|
5406
|
+
offset: MaterialAnimationPropertyInfo[];
|
|
5407
|
+
rotation: MaterialAnimationPropertyInfo[];
|
|
5408
|
+
};
|
|
5409
|
+
};
|
|
5410
|
+
};
|
|
5411
|
+
iridescenceThicknessTexture: {
|
|
5412
|
+
extensions: {
|
|
5413
|
+
KHR_texture_transform: {
|
|
5414
|
+
scale: MaterialAnimationPropertyInfo[];
|
|
5415
|
+
offset: MaterialAnimationPropertyInfo[];
|
|
5416
|
+
rotation: MaterialAnimationPropertyInfo[];
|
|
5417
|
+
};
|
|
5418
|
+
};
|
|
5419
|
+
};
|
|
5325
5420
|
};
|
|
5326
5421
|
KHR_materials_sheen: {
|
|
5327
5422
|
sheenColorFactor: MaterialAnimationPropertyInfo[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-loaders",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.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": "^7.
|
|
19
|
-
"babylonjs-gltf2interface": "^7.
|
|
18
|
+
"babylonjs": "^7.2.0",
|
|
19
|
+
"babylonjs-gltf2interface": "^7.2.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/build-tools": "1.0.0",
|