|
@@ -7863,6 +7863,23 @@ declare module "babylonjs/Misc/instantiationTools" {
|
|
static Instantiate(className: string): any;
|
|
static Instantiate(className: string): any;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+declare module "babylonjs/Misc/copyTools" {
|
|
|
|
+ import { Nullable } from "babylonjs/types";
|
|
|
|
+ import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
|
|
+ /**
|
|
|
|
+ * Class used to host copy specific utilities
|
|
|
|
+ */
|
|
|
|
+ export class CopyTools {
|
|
|
|
+ /**
|
|
|
|
+ * Reads the pixels stored in the webgl texture and returns them as a base64 string
|
|
|
|
+ * @param texture defines the texture to read pixels from
|
|
|
|
+ * @param faceIndex defines the face of the texture to read (in case of cube texture)
|
|
|
|
+ * @param level defines the LOD level of the texture to read (in case of Mip Maps)
|
|
|
|
+ * @returns The base64 encoded string or null
|
|
|
|
+ */
|
|
|
|
+ static GenerateBase64StringFromTexture(texture: BaseTexture, faceIndex?: number, level?: number): Nullable<string>;
|
|
|
|
+ }
|
|
|
|
+}
|
|
declare module "babylonjs/Engines/depthTextureCreationOptions" {
|
|
declare module "babylonjs/Engines/depthTextureCreationOptions" {
|
|
/**
|
|
/**
|
|
* Define options used to create a depth texture
|
|
* Define options used to create a depth texture
|
|
@@ -29439,6 +29456,11 @@ declare module "babylonjs/Materials/Textures/texture" {
|
|
* Gets or sets a general boolean used to indicate that textures containing direct data (buffers) must be saved as part of the serialization process
|
|
* Gets or sets a general boolean used to indicate that textures containing direct data (buffers) must be saved as part of the serialization process
|
|
*/
|
|
*/
|
|
static SerializeBuffers: boolean;
|
|
static SerializeBuffers: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Gets or sets a general boolean used to indicate that texture buffers must be saved as part of the serialization process.
|
|
|
|
+ * If no buffer exists, one will be created as base64 string from the internal webgl data.
|
|
|
|
+ */
|
|
|
|
+ static ForceSerializeBuffers: boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
static _CubeTextureParser: (jsonTexture: any, scene: Scene, rootUrl: string) => CubeTexture;
|
|
static _CubeTextureParser: (jsonTexture: any, scene: Scene, rootUrl: string) => CubeTexture;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -39212,6 +39234,8 @@ declare module "babylonjs/Materials/effect" {
|
|
private _vertexSourceCodeOverride;
|
|
private _vertexSourceCodeOverride;
|
|
private _fragmentSourceCodeOverride;
|
|
private _fragmentSourceCodeOverride;
|
|
private _transformFeedbackVaryings;
|
|
private _transformFeedbackVaryings;
|
|
|
|
+ private _rawVertexSourceCode;
|
|
|
|
+ private _rawFragmentSourceCode;
|
|
/**
|
|
/**
|
|
* Compiled shader to webGL program.
|
|
* Compiled shader to webGL program.
|
|
* @hidden
|
|
* @hidden
|
|
@@ -39335,6 +39359,14 @@ declare module "babylonjs/Materials/effect" {
|
|
*/
|
|
*/
|
|
get fragmentSourceCode(): string;
|
|
get fragmentSourceCode(): string;
|
|
/**
|
|
/**
|
|
|
|
+ * Gets the vertex shader source code before it has been processed by the preprocessor
|
|
|
|
+ */
|
|
|
|
+ get rawVertexSourceCode(): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the fragment shader source code before it has been processed by the preprocessor
|
|
|
|
+ */
|
|
|
|
+ get rawFragmentSourceCode(): string;
|
|
|
|
+ /**
|
|
* Recompiles the webGL program
|
|
* Recompiles the webGL program
|
|
* @param vertexSourceCode The source code for the vertex shader.
|
|
* @param vertexSourceCode The source code for the vertex shader.
|
|
* @param fragmentSourceCode The source code for the fragment shader.
|
|
* @param fragmentSourceCode The source code for the fragment shader.
|
|
@@ -40442,7 +40474,7 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
* @param options defines further options to be sent to the getContext() function
|
|
* @param options defines further options to be sent to the getContext() function
|
|
* @param adaptToDeviceRatio defines whether to adapt to the device's viewport characteristics (default: false)
|
|
* @param adaptToDeviceRatio defines whether to adapt to the device's viewport characteristics (default: false)
|
|
*/
|
|
*/
|
|
- constructor(canvasOrContext: Nullable<HTMLCanvasElement | WebGLRenderingContext | WebGL2RenderingContext>, antialias?: boolean, options?: EngineOptions, adaptToDeviceRatio?: boolean);
|
|
|
|
|
|
+ constructor(canvasOrContext: Nullable<HTMLCanvasElement | OffscreenCanvas | WebGLRenderingContext | WebGL2RenderingContext>, antialias?: boolean, options?: EngineOptions, adaptToDeviceRatio?: boolean);
|
|
private _rebuildInternalTextures;
|
|
private _rebuildInternalTextures;
|
|
private _rebuildEffects;
|
|
private _rebuildEffects;
|
|
/**
|
|
/**
|
|
@@ -48664,7 +48696,7 @@ declare module "babylonjs/Behaviors/Meshes/pointerDragBehavior" {
|
|
private _alternatePickedPoint;
|
|
private _alternatePickedPoint;
|
|
private _worldDragAxis;
|
|
private _worldDragAxis;
|
|
private _targetPosition;
|
|
private _targetPosition;
|
|
- private _attachedElement;
|
|
|
|
|
|
+ private _attachedToElement;
|
|
/**
|
|
/**
|
|
* Attaches the drag behavior the passed in mesh
|
|
* Attaches the drag behavior the passed in mesh
|
|
* @param ownerNode The mesh that will be dragged around once attached
|
|
* @param ownerNode The mesh that will be dragged around once attached
|
|
@@ -48755,7 +48787,7 @@ declare module "babylonjs/Behaviors/Meshes/sixDofDragBehavior" {
|
|
private _pointerObserver;
|
|
private _pointerObserver;
|
|
private _moving;
|
|
private _moving;
|
|
private _startingOrientation;
|
|
private _startingOrientation;
|
|
- private _attachedElement;
|
|
|
|
|
|
+ private _attachedToElement;
|
|
/**
|
|
/**
|
|
* How much faster the object should move when the controller is moving towards it. This is useful to bring objects that are far away from the user to them faster. Set this to 0 to avoid any speed increase. (Default: 3)
|
|
* How much faster the object should move when the controller is moving towards it. This is useful to bring objects that are far away from the user to them faster. Set this to 0 to avoid any speed increase. (Default: 3)
|
|
*/
|
|
*/
|
|
@@ -79758,6 +79790,7 @@ declare module "babylonjs/Misc/index" {
|
|
export * from "babylonjs/Misc/khronosTextureContainer2";
|
|
export * from "babylonjs/Misc/khronosTextureContainer2";
|
|
export * from "babylonjs/Misc/trajectoryClassifier";
|
|
export * from "babylonjs/Misc/trajectoryClassifier";
|
|
export * from "babylonjs/Misc/timer";
|
|
export * from "babylonjs/Misc/timer";
|
|
|
|
+ export * from "babylonjs/Misc/copyTools";
|
|
}
|
|
}
|
|
declare module "babylonjs/XR/features/WebXRHitTestLegacy" {
|
|
declare module "babylonjs/XR/features/WebXRHitTestLegacy" {
|
|
import { IWebXRFeature } from "babylonjs/XR/webXRFeaturesManager";
|
|
import { IWebXRFeature } from "babylonjs/XR/webXRFeaturesManager";
|
|
@@ -88939,6 +88972,21 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
|
|
+ * Class used to host copy specific utilities
|
|
|
|
+ */
|
|
|
|
+ export class CopyTools {
|
|
|
|
+ /**
|
|
|
|
+ * Reads the pixels stored in the webgl texture and returns them as a base64 string
|
|
|
|
+ * @param texture defines the texture to read pixels from
|
|
|
|
+ * @param faceIndex defines the face of the texture to read (in case of cube texture)
|
|
|
|
+ * @param level defines the LOD level of the texture to read (in case of Mip Maps)
|
|
|
|
+ * @returns The base64 encoded string or null
|
|
|
|
+ */
|
|
|
|
+ static GenerateBase64StringFromTexture(texture: BaseTexture, faceIndex?: number, level?: number): Nullable<string>;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
* Define options used to create a depth texture
|
|
* Define options used to create a depth texture
|
|
*/
|
|
*/
|
|
export class DepthTextureCreationOptions {
|
|
export class DepthTextureCreationOptions {
|
|
@@ -109451,6 +109499,11 @@ declare module BABYLON {
|
|
* Gets or sets a general boolean used to indicate that textures containing direct data (buffers) must be saved as part of the serialization process
|
|
* Gets or sets a general boolean used to indicate that textures containing direct data (buffers) must be saved as part of the serialization process
|
|
*/
|
|
*/
|
|
static SerializeBuffers: boolean;
|
|
static SerializeBuffers: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Gets or sets a general boolean used to indicate that texture buffers must be saved as part of the serialization process.
|
|
|
|
+ * If no buffer exists, one will be created as base64 string from the internal webgl data.
|
|
|
|
+ */
|
|
|
|
+ static ForceSerializeBuffers: boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
static _CubeTextureParser: (jsonTexture: any, scene: Scene, rootUrl: string) => CubeTexture;
|
|
static _CubeTextureParser: (jsonTexture: any, scene: Scene, rootUrl: string) => CubeTexture;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -118949,6 +119002,8 @@ declare module BABYLON {
|
|
private _vertexSourceCodeOverride;
|
|
private _vertexSourceCodeOverride;
|
|
private _fragmentSourceCodeOverride;
|
|
private _fragmentSourceCodeOverride;
|
|
private _transformFeedbackVaryings;
|
|
private _transformFeedbackVaryings;
|
|
|
|
+ private _rawVertexSourceCode;
|
|
|
|
+ private _rawFragmentSourceCode;
|
|
/**
|
|
/**
|
|
* Compiled shader to webGL program.
|
|
* Compiled shader to webGL program.
|
|
* @hidden
|
|
* @hidden
|
|
@@ -119072,6 +119127,14 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
get fragmentSourceCode(): string;
|
|
get fragmentSourceCode(): string;
|
|
/**
|
|
/**
|
|
|
|
+ * Gets the vertex shader source code before it has been processed by the preprocessor
|
|
|
|
+ */
|
|
|
|
+ get rawVertexSourceCode(): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the fragment shader source code before it has been processed by the preprocessor
|
|
|
|
+ */
|
|
|
|
+ get rawFragmentSourceCode(): string;
|
|
|
|
+ /**
|
|
* Recompiles the webGL program
|
|
* Recompiles the webGL program
|
|
* @param vertexSourceCode The source code for the vertex shader.
|
|
* @param vertexSourceCode The source code for the vertex shader.
|
|
* @param fragmentSourceCode The source code for the fragment shader.
|
|
* @param fragmentSourceCode The source code for the fragment shader.
|
|
@@ -120137,7 +120200,7 @@ declare module BABYLON {
|
|
* @param options defines further options to be sent to the getContext() function
|
|
* @param options defines further options to be sent to the getContext() function
|
|
* @param adaptToDeviceRatio defines whether to adapt to the device's viewport characteristics (default: false)
|
|
* @param adaptToDeviceRatio defines whether to adapt to the device's viewport characteristics (default: false)
|
|
*/
|
|
*/
|
|
- constructor(canvasOrContext: Nullable<HTMLCanvasElement | WebGLRenderingContext | WebGL2RenderingContext>, antialias?: boolean, options?: EngineOptions, adaptToDeviceRatio?: boolean);
|
|
|
|
|
|
+ constructor(canvasOrContext: Nullable<HTMLCanvasElement | OffscreenCanvas | WebGLRenderingContext | WebGL2RenderingContext>, antialias?: boolean, options?: EngineOptions, adaptToDeviceRatio?: boolean);
|
|
private _rebuildInternalTextures;
|
|
private _rebuildInternalTextures;
|
|
private _rebuildEffects;
|
|
private _rebuildEffects;
|
|
/**
|
|
/**
|
|
@@ -128092,7 +128155,7 @@ declare module BABYLON {
|
|
private _alternatePickedPoint;
|
|
private _alternatePickedPoint;
|
|
private _worldDragAxis;
|
|
private _worldDragAxis;
|
|
private _targetPosition;
|
|
private _targetPosition;
|
|
- private _attachedElement;
|
|
|
|
|
|
+ private _attachedToElement;
|
|
/**
|
|
/**
|
|
* Attaches the drag behavior the passed in mesh
|
|
* Attaches the drag behavior the passed in mesh
|
|
* @param ownerNode The mesh that will be dragged around once attached
|
|
* @param ownerNode The mesh that will be dragged around once attached
|
|
@@ -128178,7 +128241,7 @@ declare module BABYLON {
|
|
private _pointerObserver;
|
|
private _pointerObserver;
|
|
private _moving;
|
|
private _moving;
|
|
private _startingOrientation;
|
|
private _startingOrientation;
|
|
- private _attachedElement;
|
|
|
|
|
|
+ private _attachedToElement;
|
|
/**
|
|
/**
|
|
* How much faster the object should move when the controller is moving towards it. This is useful to bring objects that are far away from the user to them faster. Set this to 0 to avoid any speed increase. (Default: 3)
|
|
* How much faster the object should move when the controller is moving towards it. This is useful to bring objects that are far away from the user to them faster. Set this to 0 to avoid any speed increase. (Default: 3)
|
|
*/
|
|
*/
|