babylonjs-loaders 7.39.1 → 7.39.3
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 +184 -57
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +184 -57
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.d.ts +92 -0
- package/babylonjs.loaders.js +197 -61
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/babylonjs.loaders.module.d.ts +186 -0
- package/package.json +3 -3
package/babylonjs.loaders.d.ts
CHANGED
|
@@ -806,10 +806,16 @@ declare module BABYLON.GLTF2.Loader {
|
|
|
806
806
|
/**
|
|
807
807
|
* Loader interface with additional members.
|
|
808
808
|
*/
|
|
809
|
+
/** @internal */
|
|
809
810
|
export interface IKHRLightsPunctual_Light extends GLTF2.IKHRLightsPunctual_Light, IArrayItem {
|
|
810
811
|
/** @hidden */
|
|
811
812
|
_babylonLight?: Light;
|
|
812
813
|
}
|
|
814
|
+
/** @internal */
|
|
815
|
+
export interface IEXTLightsIES_Light extends GLTF2.IEXTLightsIES_Light, IArrayItem {
|
|
816
|
+
/** @hidden */
|
|
817
|
+
_babylonLight?: Light;
|
|
818
|
+
}
|
|
813
819
|
|
|
814
820
|
|
|
815
821
|
|
|
@@ -1930,6 +1936,41 @@ declare module BABYLON {
|
|
|
1930
1936
|
["KHR_node_visibility"]: {};
|
|
1931
1937
|
}
|
|
1932
1938
|
|
|
1939
|
+
}
|
|
1940
|
+
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
1941
|
+
/**
|
|
1942
|
+
* Loader extension for KHR_node_hoverability
|
|
1943
|
+
* @see https://github.com/KhronosGroup/glTF/pull/2426
|
|
1944
|
+
*/
|
|
1945
|
+
export class KHR_node_hoverability implements BABYLON.GLTF2.IGLTFLoaderExtension {
|
|
1946
|
+
/**
|
|
1947
|
+
* The name of this extension.
|
|
1948
|
+
*/
|
|
1949
|
+
readonly name = "KHR_node_hoverability";
|
|
1950
|
+
/**
|
|
1951
|
+
* Defines whether this extension is enabled.
|
|
1952
|
+
*/
|
|
1953
|
+
enabled: boolean;
|
|
1954
|
+
private _loader;
|
|
1955
|
+
/**
|
|
1956
|
+
* @internal
|
|
1957
|
+
*/
|
|
1958
|
+
constructor(loader: BABYLON.GLTF2.GLTFLoader);
|
|
1959
|
+
onReady(): Promise<void>;
|
|
1960
|
+
dispose(): void;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
}
|
|
1966
|
+
declare module BABYLON {
|
|
1967
|
+
interface GLTFLoaderExtensionOptions {
|
|
1968
|
+
/**
|
|
1969
|
+
* Defines options for the KHR_node_hoverability extension.
|
|
1970
|
+
*/
|
|
1971
|
+
["KHR_node_hoverability"]: {};
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1933
1974
|
}
|
|
1934
1975
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
1935
1976
|
/**
|
|
@@ -3047,6 +3088,15 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
3047
3088
|
};
|
|
3048
3089
|
};
|
|
3049
3090
|
};
|
|
3091
|
+
EXT_lights_ies: {
|
|
3092
|
+
lights: {
|
|
3093
|
+
__array__: {
|
|
3094
|
+
__target__: boolean;
|
|
3095
|
+
color: LightAnimationPropertyInfo[];
|
|
3096
|
+
multiplier: LightAnimationPropertyInfo[];
|
|
3097
|
+
};
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3050
3100
|
};
|
|
3051
3101
|
};
|
|
3052
3102
|
|
|
@@ -3345,6 +3395,48 @@ declare module BABYLON {
|
|
|
3345
3395
|
["EXT_lights_image_based"]: {};
|
|
3346
3396
|
}
|
|
3347
3397
|
|
|
3398
|
+
}
|
|
3399
|
+
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
3400
|
+
/**
|
|
3401
|
+
* [Specification](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor/EXT_lights_ies)
|
|
3402
|
+
*/
|
|
3403
|
+
export class EXT_lights_ies implements BABYLON.GLTF2.IGLTFLoaderExtension {
|
|
3404
|
+
/**
|
|
3405
|
+
* The name of this extension.
|
|
3406
|
+
*/
|
|
3407
|
+
readonly name = "EXT_lights_ies";
|
|
3408
|
+
/**
|
|
3409
|
+
* Defines whether this extension is enabled.
|
|
3410
|
+
*/
|
|
3411
|
+
enabled: boolean;
|
|
3412
|
+
/** hidden */
|
|
3413
|
+
private _loader;
|
|
3414
|
+
private _lights?;
|
|
3415
|
+
/**
|
|
3416
|
+
* @internal
|
|
3417
|
+
*/
|
|
3418
|
+
constructor(loader: BABYLON.GLTF2.GLTFLoader);
|
|
3419
|
+
/** @internal */
|
|
3420
|
+
dispose(): void;
|
|
3421
|
+
/** @internal */
|
|
3422
|
+
onLoading(): void;
|
|
3423
|
+
/**
|
|
3424
|
+
* @internal
|
|
3425
|
+
*/
|
|
3426
|
+
loadNodeAsync(context: string, node: BABYLON.GLTF2.Loader.INode, assign: (babylonTransformNode: TransformNode) => void): Nullable<Promise<TransformNode>>;
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3429
|
+
|
|
3430
|
+
|
|
3431
|
+
}
|
|
3432
|
+
declare module BABYLON {
|
|
3433
|
+
interface GLTFLoaderExtensionOptions {
|
|
3434
|
+
/**
|
|
3435
|
+
* Defines options for the EXT_lights_ies extension.
|
|
3436
|
+
*/
|
|
3437
|
+
["EXT_lights_ies"]: {};
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3348
3440
|
}
|
|
3349
3441
|
declare module BABYLON.GLTF1 {
|
|
3350
3442
|
|