babylonjs-loaders 7.37.1 → 7.38.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 +4 -27
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +4 -27
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.d.ts +12 -13
- package/babylonjs.loaders.js +4 -27
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/babylonjs.loaders.module.d.ts +25 -27
- package/package.json +3 -3
package/babylonjs.loaders.d.ts
CHANGED
|
@@ -2009,9 +2009,7 @@ declare module BABYLON {
|
|
|
2009
2009
|
|
|
2010
2010
|
}
|
|
2011
2011
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
2012
|
-
|
|
2013
|
-
export type MaterialVariantsController = Parameters<Required<GLTFLoaderExtensionOptions[typeof NAME]>["onLoaded"]>[0];
|
|
2014
|
-
/**
|
|
2012
|
+
/**
|
|
2015
2013
|
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_variants/README.md)
|
|
2016
2014
|
*/
|
|
2017
2015
|
export class KHR_materials_variants implements BABYLON.GLTF2.IGLTFLoaderExtension {
|
|
@@ -2092,6 +2090,16 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
2092
2090
|
|
|
2093
2091
|
}
|
|
2094
2092
|
declare module BABYLON {
|
|
2093
|
+
type MaterialVariantsController = {
|
|
2094
|
+
/**
|
|
2095
|
+
* The list of available variant names for this asset.
|
|
2096
|
+
*/
|
|
2097
|
+
readonly variants: readonly string[];
|
|
2098
|
+
/**
|
|
2099
|
+
* Gets or sets the selected variant.
|
|
2100
|
+
*/
|
|
2101
|
+
selectedVariant: string;
|
|
2102
|
+
};
|
|
2095
2103
|
interface GLTFLoaderExtensionOptions {
|
|
2096
2104
|
/**
|
|
2097
2105
|
* Defines options for the KHR_materials_variants extension.
|
|
@@ -2101,16 +2109,7 @@ declare module BABYLON {
|
|
|
2101
2109
|
* Defines a callback that will be called if material variants are loaded.
|
|
2102
2110
|
* @experimental
|
|
2103
2111
|
*/
|
|
2104
|
-
onLoaded: (controller:
|
|
2105
|
-
/**
|
|
2106
|
-
* The list of available variant names for this asset.
|
|
2107
|
-
*/
|
|
2108
|
-
readonly variants: readonly string[];
|
|
2109
|
-
/**
|
|
2110
|
-
* Gets or sets the selected variant.
|
|
2111
|
-
*/
|
|
2112
|
-
selectedVariant: string;
|
|
2113
|
-
}) => void;
|
|
2112
|
+
onLoaded: (controller: MaterialVariantsController) => void;
|
|
2114
2113
|
}>;
|
|
2115
2114
|
}
|
|
2116
2115
|
|