|
@@ -36610,6 +36610,10 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
* Make the matrix computations to be performed in 64 bits instead of 32 bits. False by default
|
|
* Make the matrix computations to be performed in 64 bits instead of 32 bits. False by default
|
|
*/
|
|
*/
|
|
useHighPrecisionMatrix?: boolean;
|
|
useHighPrecisionMatrix?: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Will prevent the system from falling back to software implementation if a hardware device cannot be created
|
|
|
|
+ */
|
|
|
|
+ failIfMajorPerformanceCaveat?: boolean;
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* The base engine class (root of all engines)
|
|
* The base engine class (root of all engines)
|
|
@@ -37625,7 +37629,12 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
* @returns a Uint8Array containing RGBA colors
|
|
* @returns a Uint8Array containing RGBA colors
|
|
*/
|
|
*/
|
|
readPixels(x: number, y: number, width: number, height: number, hasAlpha?: boolean): Uint8Array;
|
|
readPixels(x: number, y: number, width: number, height: number, hasAlpha?: boolean): Uint8Array;
|
|
- private static _isSupported;
|
|
|
|
|
|
+ private static _IsSupported;
|
|
|
|
+ private static _HasMajorPerformanceCaveat;
|
|
|
|
+ /**
|
|
|
|
+ * Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
|
|
+ */
|
|
|
|
+ static get IsSupported(): boolean;
|
|
/**
|
|
/**
|
|
* Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
* Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
* @returns true if the engine can be created
|
|
* @returns true if the engine can be created
|
|
@@ -37633,6 +37642,10 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
*/
|
|
*/
|
|
static isSupported(): boolean;
|
|
static isSupported(): boolean;
|
|
/**
|
|
/**
|
|
|
|
+ * Gets a boolean indicating if the engine can be instanciated on a performant device (ie. if a webGL context can be found and it does not use a slow implementation)
|
|
|
|
+ */
|
|
|
|
+ static get HasMajorPerformanceCaveat(): boolean;
|
|
|
|
+ /**
|
|
* Find the next highest power of two.
|
|
* Find the next highest power of two.
|
|
* @param x Number to start search from.
|
|
* @param x Number to start search from.
|
|
* @return Next highest power of two.
|
|
* @return Next highest power of two.
|
|
@@ -53207,6 +53220,8 @@ declare module "babylonjs/Debug/ISkeletonViewer" {
|
|
sphereScaleUnit?: number;
|
|
sphereScaleUnit?: number;
|
|
/** Ratio for the Sphere Size */
|
|
/** Ratio for the Sphere Size */
|
|
sphereFactor?: number;
|
|
sphereFactor?: number;
|
|
|
|
+ /** Whether a spur should attach its far end to the child bone position */
|
|
|
|
+ spurFollowsChild?: boolean;
|
|
/** Whether to show local axes or not */
|
|
/** Whether to show local axes or not */
|
|
showLocalAxes?: boolean;
|
|
showLocalAxes?: boolean;
|
|
/** Length of each local axis */
|
|
/** Length of each local axis */
|
|
@@ -53518,14 +53533,15 @@ declare module "babylonjs/Debug/skeletonViewer" {
|
|
changeDisplayMode(mode: number): void;
|
|
changeDisplayMode(mode: number): void;
|
|
/** Sets a display option of the skeleton viewer
|
|
/** Sets a display option of the skeleton viewer
|
|
*
|
|
*
|
|
- * | Option | Type | Default | Description |
|
|
|
|
- * | --------------- | ------- | ------- | ----------- |
|
|
|
|
- * | midStep | float | 0.235 | A percentage between a bone and its child that determines the widest part of a spur. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
- * | midStepFactor | float | 0.15 | Mid step width expressed as a factor of the length. A value of 0.5 makes the spur width half of the spur length. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
- * | sphereBaseSize | float | 2 | Sphere base size. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
- * | sphereScaleUnit | float | 0.865 | Sphere scale factor used to scale spheres in relation to the longest bone. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
- * | showLocalAxes | boolean | false | Displays local axes on all bones. |
|
|
|
|
- * | localAxesSize | float | 0.075 | Determines the length of each local axis. |
|
|
|
|
|
|
+ * | Option | Type | Default | Description |
|
|
|
|
+ * | ---------------- | ------- | ------- | ----------- |
|
|
|
|
+ * | midStep | float | 0.235 | A percentage between a bone and its child that determines the widest part of a spur. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
+ * | midStepFactor | float | 0.15 | Mid step width expressed as a factor of the length. A value of 0.5 makes the spur width half of the spur length. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
+ * | sphereBaseSize | float | 2 | Sphere base size. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
+ * | sphereScaleUnit | float | 0.865 | Sphere scale factor used to scale spheres in relation to the longest bone. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
+ * | spurFollowsChild | boolean | false | Whether a spur should attach its far end to the child bone. |
|
|
|
|
+ * | showLocalAxes | boolean | false | Displays local axes on all bones. |
|
|
|
|
+ * | localAxesSize | float | 0.075 | Determines the length of each local axis. |
|
|
*
|
|
*
|
|
* @param option String of the option name
|
|
* @param option String of the option name
|
|
* @param value The numerical option value
|
|
* @param value The numerical option value
|
|
@@ -57815,6 +57831,7 @@ declare module "babylonjs/Materials/PBR/pbrClearCoatConfiguration" {
|
|
CLEARCOAT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_BUMP: boolean;
|
|
CLEARCOAT_BUMP: boolean;
|
|
CLEARCOAT_BUMPDIRECTUV: number;
|
|
CLEARCOAT_BUMPDIRECTUV: number;
|
|
|
|
+ CLEARCOAT_REMAP_F0: boolean;
|
|
CLEARCOAT_TINT: boolean;
|
|
CLEARCOAT_TINT: boolean;
|
|
CLEARCOAT_TINT_TEXTURE: boolean;
|
|
CLEARCOAT_TINT_TEXTURE: boolean;
|
|
CLEARCOAT_TINT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_TINT_TEXTUREDIRECTUV: number;
|
|
@@ -57856,6 +57873,11 @@ declare module "babylonjs/Materials/PBR/pbrClearCoatConfiguration" {
|
|
* Stores the clear coat values in a texture.
|
|
* Stores the clear coat values in a texture.
|
|
*/
|
|
*/
|
|
texture: Nullable<BaseTexture>;
|
|
texture: Nullable<BaseTexture>;
|
|
|
|
+ private _remapF0OnInterfaceChange;
|
|
|
|
+ /**
|
|
|
|
+ * Defines if the F0 value should be remapped to account for the interface change in the material.
|
|
|
|
+ */
|
|
|
|
+ remapF0OnInterfaceChange: boolean;
|
|
private _bumpTexture;
|
|
private _bumpTexture;
|
|
/**
|
|
/**
|
|
* Define the clear coat specific bump texture.
|
|
* Define the clear coat specific bump texture.
|
|
@@ -59204,6 +59226,7 @@ declare module "babylonjs/Materials/PBR/pbrBaseMaterial" {
|
|
CLEARCOAT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_BUMP: boolean;
|
|
CLEARCOAT_BUMP: boolean;
|
|
CLEARCOAT_BUMPDIRECTUV: number;
|
|
CLEARCOAT_BUMPDIRECTUV: number;
|
|
|
|
+ CLEARCOAT_REMAP_F0: boolean;
|
|
CLEARCOAT_TINT: boolean;
|
|
CLEARCOAT_TINT: boolean;
|
|
CLEARCOAT_TINT_TEXTURE: boolean;
|
|
CLEARCOAT_TINT_TEXTURE: boolean;
|
|
CLEARCOAT_TINT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_TINT_TEXTUREDIRECTUV: number;
|
|
@@ -115661,6 +115684,10 @@ declare module BABYLON {
|
|
* Make the matrix computations to be performed in 64 bits instead of 32 bits. False by default
|
|
* Make the matrix computations to be performed in 64 bits instead of 32 bits. False by default
|
|
*/
|
|
*/
|
|
useHighPrecisionMatrix?: boolean;
|
|
useHighPrecisionMatrix?: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Will prevent the system from falling back to software implementation if a hardware device cannot be created
|
|
|
|
+ */
|
|
|
|
+ failIfMajorPerformanceCaveat?: boolean;
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* The base engine class (root of all engines)
|
|
* The base engine class (root of all engines)
|
|
@@ -116676,7 +116703,12 @@ declare module BABYLON {
|
|
* @returns a Uint8Array containing RGBA colors
|
|
* @returns a Uint8Array containing RGBA colors
|
|
*/
|
|
*/
|
|
readPixels(x: number, y: number, width: number, height: number, hasAlpha?: boolean): Uint8Array;
|
|
readPixels(x: number, y: number, width: number, height: number, hasAlpha?: boolean): Uint8Array;
|
|
- private static _isSupported;
|
|
|
|
|
|
+ private static _IsSupported;
|
|
|
|
+ private static _HasMajorPerformanceCaveat;
|
|
|
|
+ /**
|
|
|
|
+ * Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
|
|
+ */
|
|
|
|
+ static get IsSupported(): boolean;
|
|
/**
|
|
/**
|
|
* Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
* Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
* @returns true if the engine can be created
|
|
* @returns true if the engine can be created
|
|
@@ -116684,6 +116716,10 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
static isSupported(): boolean;
|
|
static isSupported(): boolean;
|
|
/**
|
|
/**
|
|
|
|
+ * Gets a boolean indicating if the engine can be instanciated on a performant device (ie. if a webGL context can be found and it does not use a slow implementation)
|
|
|
|
+ */
|
|
|
|
+ static get HasMajorPerformanceCaveat(): boolean;
|
|
|
|
+ /**
|
|
* Find the next highest power of two.
|
|
* Find the next highest power of two.
|
|
* @param x Number to start search from.
|
|
* @param x Number to start search from.
|
|
* @return Next highest power of two.
|
|
* @return Next highest power of two.
|
|
@@ -131473,6 +131509,8 @@ declare module BABYLON {
|
|
sphereScaleUnit?: number;
|
|
sphereScaleUnit?: number;
|
|
/** Ratio for the Sphere Size */
|
|
/** Ratio for the Sphere Size */
|
|
sphereFactor?: number;
|
|
sphereFactor?: number;
|
|
|
|
+ /** Whether a spur should attach its far end to the child bone position */
|
|
|
|
+ spurFollowsChild?: boolean;
|
|
/** Whether to show local axes or not */
|
|
/** Whether to show local axes or not */
|
|
showLocalAxes?: boolean;
|
|
showLocalAxes?: boolean;
|
|
/** Length of each local axis */
|
|
/** Length of each local axis */
|
|
@@ -131766,14 +131804,15 @@ declare module BABYLON.Debug {
|
|
changeDisplayMode(mode: number): void;
|
|
changeDisplayMode(mode: number): void;
|
|
/** Sets a display option of the skeleton viewer
|
|
/** Sets a display option of the skeleton viewer
|
|
*
|
|
*
|
|
- * | Option | Type | Default | Description |
|
|
|
|
- * | --------------- | ------- | ------- | ----------- |
|
|
|
|
- * | midStep | float | 0.235 | A percentage between a bone and its child that determines the widest part of a spur. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
- * | midStepFactor | float | 0.15 | Mid step width expressed as a factor of the length. A value of 0.5 makes the spur width half of the spur length. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
- * | sphereBaseSize | float | 2 | Sphere base size. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
- * | sphereScaleUnit | float | 0.865 | Sphere scale factor used to scale spheres in relation to the longest bone. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
- * | showLocalAxes | boolean | false | Displays local axes on all bones. |
|
|
|
|
- * | localAxesSize | float | 0.075 | Determines the length of each local axis. |
|
|
|
|
|
|
+ * | Option | Type | Default | Description |
|
|
|
|
+ * | ---------------- | ------- | ------- | ----------- |
|
|
|
|
+ * | midStep | float | 0.235 | A percentage between a bone and its child that determines the widest part of a spur. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
+ * | midStepFactor | float | 0.15 | Mid step width expressed as a factor of the length. A value of 0.5 makes the spur width half of the spur length. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
+ * | sphereBaseSize | float | 2 | Sphere base size. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
+ * | sphereScaleUnit | float | 0.865 | Sphere scale factor used to scale spheres in relation to the longest bone. Only used when `displayMode` is set to `DISPLAY_SPHERE_AND_SPURS`. |
|
|
|
|
+ * | spurFollowsChild | boolean | false | Whether a spur should attach its far end to the child bone. |
|
|
|
|
+ * | showLocalAxes | boolean | false | Displays local axes on all bones. |
|
|
|
|
+ * | localAxesSize | float | 0.075 | Determines the length of each local axis. |
|
|
*
|
|
*
|
|
* @param option String of the option name
|
|
* @param option String of the option name
|
|
* @param value The numerical option value
|
|
* @param value The numerical option value
|
|
@@ -135700,6 +135739,7 @@ declare module BABYLON {
|
|
CLEARCOAT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_BUMP: boolean;
|
|
CLEARCOAT_BUMP: boolean;
|
|
CLEARCOAT_BUMPDIRECTUV: number;
|
|
CLEARCOAT_BUMPDIRECTUV: number;
|
|
|
|
+ CLEARCOAT_REMAP_F0: boolean;
|
|
CLEARCOAT_TINT: boolean;
|
|
CLEARCOAT_TINT: boolean;
|
|
CLEARCOAT_TINT_TEXTURE: boolean;
|
|
CLEARCOAT_TINT_TEXTURE: boolean;
|
|
CLEARCOAT_TINT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_TINT_TEXTUREDIRECTUV: number;
|
|
@@ -135741,6 +135781,11 @@ declare module BABYLON {
|
|
* Stores the clear coat values in a texture.
|
|
* Stores the clear coat values in a texture.
|
|
*/
|
|
*/
|
|
texture: Nullable<BaseTexture>;
|
|
texture: Nullable<BaseTexture>;
|
|
|
|
+ private _remapF0OnInterfaceChange;
|
|
|
|
+ /**
|
|
|
|
+ * Defines if the F0 value should be remapped to account for the interface change in the material.
|
|
|
|
+ */
|
|
|
|
+ remapF0OnInterfaceChange: boolean;
|
|
private _bumpTexture;
|
|
private _bumpTexture;
|
|
/**
|
|
/**
|
|
* Define the clear coat specific bump texture.
|
|
* Define the clear coat specific bump texture.
|
|
@@ -136963,6 +137008,7 @@ declare module BABYLON {
|
|
CLEARCOAT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_BUMP: boolean;
|
|
CLEARCOAT_BUMP: boolean;
|
|
CLEARCOAT_BUMPDIRECTUV: number;
|
|
CLEARCOAT_BUMPDIRECTUV: number;
|
|
|
|
+ CLEARCOAT_REMAP_F0: boolean;
|
|
CLEARCOAT_TINT: boolean;
|
|
CLEARCOAT_TINT: boolean;
|
|
CLEARCOAT_TINT_TEXTURE: boolean;
|
|
CLEARCOAT_TINT_TEXTURE: boolean;
|
|
CLEARCOAT_TINT_TEXTUREDIRECTUV: number;
|
|
CLEARCOAT_TINT_TEXTUREDIRECTUV: number;
|