babylonjs-addons 8.30.0 → 8.30.2
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.
@@ -966,12 +966,17 @@ export function CreateNavigationPluginWorkerAsync(): Promise<RecastNavigationJSP
|
|
966
966
|
}
|
967
967
|
declare module "babylonjs-addons/navigation/factory/factory.single-thread" {
|
968
968
|
import { RecastNavigationJSPluginV2 } from "babylonjs-addons/navigation/plugin/RecastNavigationJSPlugin";
|
969
|
+
import { RecastInjection } from "babylonjs-addons/navigation/types";
|
969
970
|
/**
|
970
971
|
* Creates a navigation plugin for the given scene.
|
971
972
|
* @returns A promise that resolves to the created navigation plugin.
|
973
|
+
* @param options Optional configuration. options.version: The version of Recast to use. options.instance: A custom Recast instance to inject instead of loading one.
|
972
974
|
* @remarks This function initializes the Recast module and sets up the navigation plugin.
|
973
975
|
*/
|
974
|
-
export function CreateNavigationPluginAsync(
|
976
|
+
export function CreateNavigationPluginAsync(options?: {
|
977
|
+
version?: string;
|
978
|
+
instance?: RecastInjection;
|
979
|
+
}): Promise<RecastNavigationJSPluginV2>;
|
975
980
|
|
976
981
|
}
|
977
982
|
declare module "babylonjs-addons/navigation/factory/common" {
|
@@ -988,12 +993,14 @@ export function GetRecast(): RecastInjection;
|
|
988
993
|
*/
|
989
994
|
export function SetRecast(recast: RecastInjection): void;
|
990
995
|
/**
|
991
|
-
*
|
992
|
-
*
|
993
|
-
* @param options
|
996
|
+
* Initializes the Recast navigation library.
|
997
|
+
*
|
998
|
+
* @param options Optional configuration. options.version: The version of Recast to use. options.instance: A custom Recast instance to inject instead of loading one.
|
999
|
+
* @returns A promise that resolves when initialization is complete.
|
994
1000
|
*/
|
995
|
-
export function InitRecast(
|
996
|
-
|
1001
|
+
export function InitRecast(options?: {
|
1002
|
+
version?: string;
|
1003
|
+
instance?: RecastInjection;
|
997
1004
|
}): Promise<void>;
|
998
1005
|
|
999
1006
|
}
|
@@ -2950,6 +2957,7 @@ export class Atmosphere implements IDisposable {
|
|
2950
2957
|
private _aerialPerspectiveRenderingGroup;
|
2951
2958
|
private _globeAtmosphereRenderingGroup;
|
2952
2959
|
private _isEnabled;
|
2960
|
+
private _aerialPerspectiveLutHasBeenRendered;
|
2953
2961
|
private _hasRenderedMultiScatteringLut;
|
2954
2962
|
private _multiScatteringEffectWrapper;
|
2955
2963
|
private _multiScatteringLutRenderTarget;
|
@@ -2971,6 +2979,10 @@ export class Atmosphere implements IDisposable {
|
|
2971
2979
|
* @returns True if the atmosphere is supported, false otherwise.
|
2972
2980
|
*/
|
2973
2981
|
static IsSupported(engine: AbstractEngine): boolean;
|
2982
|
+
/**
|
2983
|
+
* The unique ID of this atmosphere instance.
|
2984
|
+
*/
|
2985
|
+
readonly uniqueId: number;
|
2974
2986
|
/**
|
2975
2987
|
* Called after the atmosphere variables have been updated for the specified camera.
|
2976
2988
|
*/
|
@@ -3161,7 +3173,6 @@ export class Atmosphere implements IDisposable {
|
|
3161
3173
|
* Gets the camera-related variables for this atmosphere. Updated each frame.
|
3162
3174
|
*/
|
3163
3175
|
get cameraAtmosphereVariables(): AtmospherePerCameraVariables;
|
3164
|
-
readonly uniqueId: number;
|
3165
3176
|
/**
|
3166
3177
|
* Constructs the {@link Atmosphere}.
|
3167
3178
|
* @param name - The name of this instance.
|
@@ -3260,6 +3271,7 @@ export class Atmosphere implements IDisposable {
|
|
3260
3271
|
* Draws the aerial perspective LUT using {@link EffectWrapper} and {@link EffectRenderer}.
|
3261
3272
|
*/
|
3262
3273
|
private _drawAerialPerspectiveLut;
|
3274
|
+
private _clearAerialPerspectiveLut;
|
3263
3275
|
/**
|
3264
3276
|
* Draws the sky view LUT using {@link EffectWrapper} and {@link EffectRenderer}.
|
3265
3277
|
*/
|
@@ -4341,9 +4353,13 @@ declare module ADDONS {
|
|
4341
4353
|
/**
|
4342
4354
|
* Creates a navigation plugin for the given scene.
|
4343
4355
|
* @returns A promise that resolves to the created navigation plugin.
|
4356
|
+
* @param options Optional configuration. options.version: The version of Recast to use. options.instance: A custom Recast instance to inject instead of loading one.
|
4344
4357
|
* @remarks This function initializes the Recast module and sets up the navigation plugin.
|
4345
4358
|
*/
|
4346
|
-
export function CreateNavigationPluginAsync(
|
4359
|
+
export function CreateNavigationPluginAsync(options?: {
|
4360
|
+
version?: string;
|
4361
|
+
instance?: RecastInjection;
|
4362
|
+
}): Promise<RecastNavigationJSPluginV2>;
|
4347
4363
|
|
4348
4364
|
|
4349
4365
|
/**
|
@@ -4358,12 +4374,14 @@ declare module ADDONS {
|
|
4358
4374
|
*/
|
4359
4375
|
export function SetRecast(recast: RecastInjection): void;
|
4360
4376
|
/**
|
4361
|
-
*
|
4362
|
-
*
|
4363
|
-
* @param options
|
4377
|
+
* Initializes the Recast navigation library.
|
4378
|
+
*
|
4379
|
+
* @param options Optional configuration. options.version: The version of Recast to use. options.instance: A custom Recast instance to inject instead of loading one.
|
4380
|
+
* @returns A promise that resolves when initialization is complete.
|
4364
4381
|
*/
|
4365
|
-
export function InitRecast(
|
4366
|
-
|
4382
|
+
export function InitRecast(options?: {
|
4383
|
+
version?: string;
|
4384
|
+
instance?: RecastInjection;
|
4367
4385
|
}): Promise<void>;
|
4368
4386
|
|
4369
4387
|
|
@@ -6136,6 +6154,7 @@ declare module ADDONS {
|
|
6136
6154
|
private _aerialPerspectiveRenderingGroup;
|
6137
6155
|
private _globeAtmosphereRenderingGroup;
|
6138
6156
|
private _isEnabled;
|
6157
|
+
private _aerialPerspectiveLutHasBeenRendered;
|
6139
6158
|
private _hasRenderedMultiScatteringLut;
|
6140
6159
|
private _multiScatteringEffectWrapper;
|
6141
6160
|
private _multiScatteringLutRenderTarget;
|
@@ -6157,6 +6176,10 @@ declare module ADDONS {
|
|
6157
6176
|
* @returns True if the atmosphere is supported, false otherwise.
|
6158
6177
|
*/
|
6159
6178
|
static IsSupported(engine: BABYLON.AbstractEngine): boolean;
|
6179
|
+
/**
|
6180
|
+
* The unique ID of this atmosphere instance.
|
6181
|
+
*/
|
6182
|
+
readonly uniqueId: number;
|
6160
6183
|
/**
|
6161
6184
|
* Called after the atmosphere variables have been updated for the specified camera.
|
6162
6185
|
*/
|
@@ -6347,7 +6370,6 @@ declare module ADDONS {
|
|
6347
6370
|
* Gets the camera-related variables for this atmosphere. Updated each frame.
|
6348
6371
|
*/
|
6349
6372
|
get cameraAtmosphereVariables(): AtmospherePerCameraVariables;
|
6350
|
-
readonly uniqueId: number;
|
6351
6373
|
/**
|
6352
6374
|
* Constructs the {@link Atmosphere}.
|
6353
6375
|
* @param name - The name of this instance.
|
@@ -6446,6 +6468,7 @@ declare module ADDONS {
|
|
6446
6468
|
* Draws the aerial perspective LUT using {@link EffectWrapper} and {@link EffectRenderer}.
|
6447
6469
|
*/
|
6448
6470
|
private _drawAerialPerspectiveLut;
|
6471
|
+
private _clearAerialPerspectiveLut;
|
6449
6472
|
/**
|
6450
6473
|
* Draws the sky view LUT using {@link EffectWrapper} and {@link EffectRenderer}.
|
6451
6474
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "babylonjs-addons",
|
3
|
-
"version": "8.30.
|
3
|
+
"version": "8.30.2",
|
4
4
|
"main": "babylonjs.addons.min.js",
|
5
5
|
"types": "babylonjs.addons.module.d.ts",
|
6
6
|
"files": [
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"test:escheck": "es-check es6 ./babylonjs.addons.js"
|
16
16
|
},
|
17
17
|
"dependencies": {
|
18
|
-
"babylonjs": "^8.30.
|
18
|
+
"babylonjs": "^8.30.2"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@dev/build-tools": "1.0.0",
|