babylonjs-loaders 7.0.0 → 7.1.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.glTF2FileLoader.js +114 -57
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +114 -57
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.d.ts +29 -0
- package/babylonjs.loaders.js +114 -57
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/babylonjs.loaders.module.d.ts +59 -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";
|
|
@@ -4980,6 +5010,35 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
4980
5010
|
|
|
4981
5011
|
|
|
4982
5012
|
|
|
5013
|
+
}
|
|
5014
|
+
declare module BABYLON {
|
|
5015
|
+
|
|
5016
|
+
}
|
|
5017
|
+
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
5018
|
+
/**
|
|
5019
|
+
* [glTF PR](https://github.com/KhronosGroup/glTF/pull/2235)
|
|
5020
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_texture_avif/README.md)
|
|
5021
|
+
*/
|
|
5022
|
+
export class EXT_texture_avif implements BABYLON.GLTF2.IGLTFLoaderExtension {
|
|
5023
|
+
/** The name of this extension. */
|
|
5024
|
+
readonly name = "EXT_texture_avif";
|
|
5025
|
+
/** Defines whether this extension is enabled. */
|
|
5026
|
+
enabled: boolean;
|
|
5027
|
+
private _loader;
|
|
5028
|
+
/**
|
|
5029
|
+
* @internal
|
|
5030
|
+
*/
|
|
5031
|
+
constructor(loader: BABYLON.GLTF2.GLTFLoader);
|
|
5032
|
+
/** @internal */
|
|
5033
|
+
dispose(): void;
|
|
5034
|
+
/**
|
|
5035
|
+
* @internal
|
|
5036
|
+
*/
|
|
5037
|
+
_loadTextureAsync(context: string, texture: BABYLON.GLTF2.Loader.ITexture, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
|
|
5038
|
+
}
|
|
5039
|
+
|
|
5040
|
+
|
|
5041
|
+
|
|
4983
5042
|
}
|
|
4984
5043
|
declare module BABYLON {
|
|
4985
5044
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-loaders",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.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.1.0",
|
|
19
|
+
"babylonjs-gltf2interface": "^7.1.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/build-tools": "1.0.0",
|