|
@@ -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
|
|
@@ -19878,7 +19895,6 @@ declare module "babylonjs/Cameras/Inputs/freeCameraTouchInput" {
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
/**
|
|
/**
|
|
* Detach the current controls from the specified dom element.
|
|
* Detach the current controls from the specified dom element.
|
|
- * @param element Defines the element to stop listening the inputs from
|
|
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
/**
|
|
/**
|
|
@@ -20061,13 +20077,12 @@ declare module "babylonjs/Cameras/freeCamera" {
|
|
*/
|
|
*/
|
|
constructor(name: string, position: Vector3, scene: Scene, setActiveOnSceneIfNoneActive?: boolean);
|
|
constructor(name: string, position: Vector3, scene: Scene, setActiveOnSceneIfNoneActive?: boolean);
|
|
/**
|
|
/**
|
|
- * Attached controls to the current camera.
|
|
|
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
*/
|
|
*/
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
/**
|
|
/**
|
|
- * Detach the current controls from the camera.
|
|
|
|
- * The camera will stop reacting to inputs.
|
|
|
|
|
|
+ * Detach the current controls from the specified dom element.
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
private _collisionMask;
|
|
private _collisionMask;
|
|
@@ -21166,7 +21181,7 @@ declare module "babylonjs/Cameras/VR/webVRCamera" {
|
|
*/
|
|
*/
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
/**
|
|
/**
|
|
- * Detaches the camera from the html element and disables VR
|
|
|
|
|
|
+ * Detach the current controls from the specified dom element.
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
/**
|
|
/**
|
|
@@ -21674,6 +21689,13 @@ declare module "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint" {
|
|
* Defines a connection point for a block
|
|
* Defines a connection point for a block
|
|
*/
|
|
*/
|
|
export class NodeMaterialConnectionPoint {
|
|
export class NodeMaterialConnectionPoint {
|
|
|
|
+ /**
|
|
|
|
+ * Checks if two types are equivalent
|
|
|
|
+ * @param type1 type 1 to check
|
|
|
|
+ * @param type2 type 2 to check
|
|
|
|
+ * @returns true if both types are equivalent, else false
|
|
|
|
+ */
|
|
|
|
+ static AreEquivalentTypes(type1: number, type2: number): boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_ownerBlock: NodeMaterialBlock;
|
|
_ownerBlock: NodeMaterialBlock;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -21685,6 +21707,8 @@ declare module "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint" {
|
|
_typeConnectionSource: Nullable<NodeMaterialConnectionPoint>;
|
|
_typeConnectionSource: Nullable<NodeMaterialConnectionPoint>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_linkedConnectionSource: Nullable<NodeMaterialConnectionPoint>;
|
|
_linkedConnectionSource: Nullable<NodeMaterialConnectionPoint>;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _acceptedConnectionPointType: Nullable<NodeMaterialConnectionPoint>;
|
|
private _type;
|
|
private _type;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_enforceAssociatedVariableName: boolean;
|
|
_enforceAssociatedVariableName: boolean;
|
|
@@ -22907,7 +22931,7 @@ declare module "babylonjs/Materials/Node/nodeMaterialBlock" {
|
|
* @returns true if the block is ready
|
|
* @returns true if the block is ready
|
|
*/
|
|
*/
|
|
isReady(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): boolean;
|
|
isReady(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): boolean;
|
|
- protected _linkConnectionTypes(inputIndex0: number, inputIndex1: number): void;
|
|
|
|
|
|
+ protected _linkConnectionTypes(inputIndex0: number, inputIndex1: number, looseCoupling?: boolean): void;
|
|
private _processBuild;
|
|
private _processBuild;
|
|
/**
|
|
/**
|
|
* Validates the new name for the block node.
|
|
* Validates the new name for the block node.
|
|
@@ -29439,6 +29463,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 +39241,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 +39366,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 +40481,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;
|
|
/**
|
|
/**
|
|
@@ -48207,15 +48246,38 @@ declare module "babylonjs/Cameras/arcRotateCamera" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_isSynchronizedViewMatrix(): boolean;
|
|
_isSynchronizedViewMatrix(): boolean;
|
|
/**
|
|
/**
|
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
|
|
+ */
|
|
|
|
+ attachControl(noPreventDefault?: boolean): void;
|
|
|
|
+ /**
|
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
|
|
+ * @param ignored defines an ignored parameter kept for backward compatibility. If you want to define the source input element, you can set engine.inputElement before calling camera.attachControl
|
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
|
|
+ */
|
|
|
|
+ attachControl(ignored: any, noPreventDefault?: boolean): void;
|
|
|
|
+ /**
|
|
|
|
+ * Attached controls to the current camera.
|
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
|
|
+ * @param useCtrlForPanning Defines whether ctrl is used for paning within the controls
|
|
|
|
+ */
|
|
|
|
+ attachControl(noPreventDefault: boolean, useCtrlForPanning: boolean): void;
|
|
|
|
+ /**
|
|
|
|
+ * Attached controls to the current camera.
|
|
|
|
+ * @param ignored defines an ignored parameter kept for backward compatibility. If you want to define the source input element, you can set engine.inputElement before calling camera.attachControl
|
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
|
|
+ * @param useCtrlForPanning Defines whether ctrl is used for paning within the controls
|
|
|
|
+ */
|
|
|
|
+ attachControl(ignored: any, noPreventDefault: boolean, useCtrlForPanning: boolean): void;
|
|
|
|
+ /**
|
|
* Attached controls to the current camera.
|
|
* Attached controls to the current camera.
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
* @param useCtrlForPanning Defines whether ctrl is used for paning within the controls
|
|
* @param useCtrlForPanning Defines whether ctrl is used for paning within the controls
|
|
* @param panningMouseButton Defines whether panning is allowed through mouse click button
|
|
* @param panningMouseButton Defines whether panning is allowed through mouse click button
|
|
*/
|
|
*/
|
|
- attachControl(noPreventDefault?: boolean, useCtrlForPanning?: boolean, panningMouseButton?: number): void;
|
|
|
|
|
|
+ attachControl(noPreventDefault: boolean, useCtrlForPanning: boolean, panningMouseButton: number): void;
|
|
/**
|
|
/**
|
|
- * Detach the current controls from the camera.
|
|
|
|
- * The camera will stop reacting to inputs.
|
|
|
|
|
|
+ * Detach the current controls from the specified dom element.
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -48664,7 +48726,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 +48817,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)
|
|
*/
|
|
*/
|
|
@@ -49092,7 +49154,6 @@ declare module "babylonjs/Cameras/Inputs/arcRotateCameraGamepadInput" {
|
|
attachControl(): void;
|
|
attachControl(): void;
|
|
/**
|
|
/**
|
|
* Detach the current controls from the specified dom element.
|
|
* Detach the current controls from the specified dom element.
|
|
- * @param element Defines the element to stop listening the inputs from
|
|
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
/**
|
|
/**
|
|
@@ -49432,8 +49493,8 @@ declare module "babylonjs/Cameras/flyCamera" {
|
|
*/
|
|
*/
|
|
constructor(name: string, position: Vector3, scene: Scene, setActiveOnSceneIfNoneActive?: boolean);
|
|
constructor(name: string, position: Vector3, scene: Scene, setActiveOnSceneIfNoneActive?: boolean);
|
|
/**
|
|
/**
|
|
- * Attach a control to the HTML DOM element.
|
|
|
|
- * @param noPreventDefault Defines whether events caught by the controls should call preventdefault(). https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault
|
|
|
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
*/
|
|
*/
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
/**
|
|
/**
|
|
@@ -49813,13 +49874,12 @@ declare module "babylonjs/Cameras/followCamera" {
|
|
constructor(name: string, position: Vector3, scene: Scene, lockedTarget?: Nullable<AbstractMesh>);
|
|
constructor(name: string, position: Vector3, scene: Scene, lockedTarget?: Nullable<AbstractMesh>);
|
|
private _follow;
|
|
private _follow;
|
|
/**
|
|
/**
|
|
- * Attached controls to the current camera.
|
|
|
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
*/
|
|
*/
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
/**
|
|
/**
|
|
- * Detach the current controls from the camera.
|
|
|
|
- * The camera will stop reacting to inputs.
|
|
|
|
|
|
+ * Detach the current controls from the specified dom element.
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -60027,6 +60087,8 @@ declare module "babylonjs/Lights/spotLight" {
|
|
* Sets the projection texture of the light.
|
|
* Sets the projection texture of the light.
|
|
*/
|
|
*/
|
|
set projectionTexture(value: Nullable<BaseTexture>);
|
|
set projectionTexture(value: Nullable<BaseTexture>);
|
|
|
|
+ private static _IsProceduralTexture;
|
|
|
|
+ private static _IsTexture;
|
|
private _projectionTextureViewLightDirty;
|
|
private _projectionTextureViewLightDirty;
|
|
private _projectionTextureProjectionLightDirty;
|
|
private _projectionTextureProjectionLightDirty;
|
|
private _projectionTextureDirty;
|
|
private _projectionTextureDirty;
|
|
@@ -75138,6 +75200,7 @@ declare module "babylonjs/PostProcesses/RenderPipeline/postProcessRenderPipeline
|
|
}
|
|
}
|
|
declare module "babylonjs/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline" {
|
|
declare module "babylonjs/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline" {
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Nullable } from "babylonjs/types";
|
|
|
|
+ import { Observable } from "babylonjs/Misc/observable";
|
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
import { Camera } from "babylonjs/Cameras/camera";
|
|
import { Camera } from "babylonjs/Cameras/camera";
|
|
import { IDisposable } from "babylonjs/scene";
|
|
import { IDisposable } from "babylonjs/scene";
|
|
@@ -75230,6 +75293,10 @@ declare module "babylonjs/PostProcesses/RenderPipeline/Pipelines/defaultRenderin
|
|
private _grainEnabled;
|
|
private _grainEnabled;
|
|
private _buildAllowed;
|
|
private _buildAllowed;
|
|
/**
|
|
/**
|
|
|
|
+ * This is triggered each time the pipeline has been built.
|
|
|
|
+ */
|
|
|
|
+ onBuildObservable: Observable<DefaultRenderingPipeline>;
|
|
|
|
+ /**
|
|
* Gets active scene
|
|
* Gets active scene
|
|
*/
|
|
*/
|
|
get scene(): Scene;
|
|
get scene(): Scene;
|
|
@@ -79758,6 +79825,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 +89007,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 {
|
|
@@ -100475,7 +100558,6 @@ declare module BABYLON {
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
/**
|
|
/**
|
|
* Detach the current controls from the specified dom element.
|
|
* Detach the current controls from the specified dom element.
|
|
- * @param element Defines the element to stop listening the inputs from
|
|
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
/**
|
|
/**
|
|
@@ -100648,13 +100730,12 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
constructor(name: string, position: Vector3, scene: Scene, setActiveOnSceneIfNoneActive?: boolean);
|
|
constructor(name: string, position: Vector3, scene: Scene, setActiveOnSceneIfNoneActive?: boolean);
|
|
/**
|
|
/**
|
|
- * Attached controls to the current camera.
|
|
|
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
*/
|
|
*/
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
/**
|
|
/**
|
|
- * Detach the current controls from the camera.
|
|
|
|
- * The camera will stop reacting to inputs.
|
|
|
|
|
|
+ * Detach the current controls from the specified dom element.
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
private _collisionMask;
|
|
private _collisionMask;
|
|
@@ -101695,7 +101776,7 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
/**
|
|
/**
|
|
- * Detaches the camera from the html element and disables VR
|
|
|
|
|
|
+ * Detach the current controls from the specified dom element.
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
/**
|
|
/**
|
|
@@ -102174,6 +102255,13 @@ declare module BABYLON {
|
|
* Defines a connection point for a block
|
|
* Defines a connection point for a block
|
|
*/
|
|
*/
|
|
export class NodeMaterialConnectionPoint {
|
|
export class NodeMaterialConnectionPoint {
|
|
|
|
+ /**
|
|
|
|
+ * Checks if two types are equivalent
|
|
|
|
+ * @param type1 type 1 to check
|
|
|
|
+ * @param type2 type 2 to check
|
|
|
|
+ * @returns true if both types are equivalent, else false
|
|
|
|
+ */
|
|
|
|
+ static AreEquivalentTypes(type1: number, type2: number): boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_ownerBlock: NodeMaterialBlock;
|
|
_ownerBlock: NodeMaterialBlock;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -102185,6 +102273,8 @@ declare module BABYLON {
|
|
_typeConnectionSource: Nullable<NodeMaterialConnectionPoint>;
|
|
_typeConnectionSource: Nullable<NodeMaterialConnectionPoint>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_linkedConnectionSource: Nullable<NodeMaterialConnectionPoint>;
|
|
_linkedConnectionSource: Nullable<NodeMaterialConnectionPoint>;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _acceptedConnectionPointType: Nullable<NodeMaterialConnectionPoint>;
|
|
private _type;
|
|
private _type;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_enforceAssociatedVariableName: boolean;
|
|
_enforceAssociatedVariableName: boolean;
|
|
@@ -103327,7 +103417,7 @@ declare module BABYLON {
|
|
* @returns true if the block is ready
|
|
* @returns true if the block is ready
|
|
*/
|
|
*/
|
|
isReady(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): boolean;
|
|
isReady(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): boolean;
|
|
- protected _linkConnectionTypes(inputIndex0: number, inputIndex1: number): void;
|
|
|
|
|
|
+ protected _linkConnectionTypes(inputIndex0: number, inputIndex1: number, looseCoupling?: boolean): void;
|
|
private _processBuild;
|
|
private _processBuild;
|
|
/**
|
|
/**
|
|
* Validates the new name for the block node.
|
|
* Validates the new name for the block node.
|
|
@@ -109451,6 +109541,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 +119044,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 +119169,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 +120242,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;
|
|
/**
|
|
/**
|
|
@@ -127659,15 +127764,38 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_isSynchronizedViewMatrix(): boolean;
|
|
_isSynchronizedViewMatrix(): boolean;
|
|
/**
|
|
/**
|
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
|
|
+ */
|
|
|
|
+ attachControl(noPreventDefault?: boolean): void;
|
|
|
|
+ /**
|
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
|
|
+ * @param ignored defines an ignored parameter kept for backward compatibility. If you want to define the source input element, you can set engine.inputElement before calling camera.attachControl
|
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
|
|
+ */
|
|
|
|
+ attachControl(ignored: any, noPreventDefault?: boolean): void;
|
|
|
|
+ /**
|
|
|
|
+ * Attached controls to the current camera.
|
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
|
|
+ * @param useCtrlForPanning Defines whether ctrl is used for paning within the controls
|
|
|
|
+ */
|
|
|
|
+ attachControl(noPreventDefault: boolean, useCtrlForPanning: boolean): void;
|
|
|
|
+ /**
|
|
|
|
+ * Attached controls to the current camera.
|
|
|
|
+ * @param ignored defines an ignored parameter kept for backward compatibility. If you want to define the source input element, you can set engine.inputElement before calling camera.attachControl
|
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
|
|
+ * @param useCtrlForPanning Defines whether ctrl is used for paning within the controls
|
|
|
|
+ */
|
|
|
|
+ attachControl(ignored: any, noPreventDefault: boolean, useCtrlForPanning: boolean): void;
|
|
|
|
+ /**
|
|
* Attached controls to the current camera.
|
|
* Attached controls to the current camera.
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
* @param useCtrlForPanning Defines whether ctrl is used for paning within the controls
|
|
* @param useCtrlForPanning Defines whether ctrl is used for paning within the controls
|
|
* @param panningMouseButton Defines whether panning is allowed through mouse click button
|
|
* @param panningMouseButton Defines whether panning is allowed through mouse click button
|
|
*/
|
|
*/
|
|
- attachControl(noPreventDefault?: boolean, useCtrlForPanning?: boolean, panningMouseButton?: number): void;
|
|
|
|
|
|
+ attachControl(noPreventDefault: boolean, useCtrlForPanning: boolean, panningMouseButton: number): void;
|
|
/**
|
|
/**
|
|
- * Detach the current controls from the camera.
|
|
|
|
- * The camera will stop reacting to inputs.
|
|
|
|
|
|
+ * Detach the current controls from the specified dom element.
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -128092,7 +128220,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 +128306,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)
|
|
*/
|
|
*/
|
|
@@ -128485,7 +128613,6 @@ declare module BABYLON {
|
|
attachControl(): void;
|
|
attachControl(): void;
|
|
/**
|
|
/**
|
|
* Detach the current controls from the specified dom element.
|
|
* Detach the current controls from the specified dom element.
|
|
- * @param element Defines the element to stop listening the inputs from
|
|
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
/**
|
|
/**
|
|
@@ -128812,8 +128939,8 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
constructor(name: string, position: Vector3, scene: Scene, setActiveOnSceneIfNoneActive?: boolean);
|
|
constructor(name: string, position: Vector3, scene: Scene, setActiveOnSceneIfNoneActive?: boolean);
|
|
/**
|
|
/**
|
|
- * Attach a control to the HTML DOM element.
|
|
|
|
- * @param noPreventDefault Defines whether events caught by the controls should call preventdefault(). https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault
|
|
|
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
|
|
+ * @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
*/
|
|
*/
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
/**
|
|
/**
|
|
@@ -129177,13 +129304,12 @@ declare module BABYLON {
|
|
constructor(name: string, position: Vector3, scene: Scene, lockedTarget?: Nullable<AbstractMesh>);
|
|
constructor(name: string, position: Vector3, scene: Scene, lockedTarget?: Nullable<AbstractMesh>);
|
|
private _follow;
|
|
private _follow;
|
|
/**
|
|
/**
|
|
- * Attached controls to the current camera.
|
|
|
|
|
|
+ * Attach the input controls to a specific dom element to get the input from.
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
*/
|
|
*/
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
attachControl(noPreventDefault?: boolean): void;
|
|
/**
|
|
/**
|
|
- * Detach the current controls from the camera.
|
|
|
|
- * The camera will stop reacting to inputs.
|
|
|
|
|
|
+ * Detach the current controls from the specified dom element.
|
|
*/
|
|
*/
|
|
detachControl(): void;
|
|
detachControl(): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -138670,6 +138796,8 @@ declare module BABYLON {
|
|
* Sets the projection texture of the light.
|
|
* Sets the projection texture of the light.
|
|
*/
|
|
*/
|
|
set projectionTexture(value: Nullable<BaseTexture>);
|
|
set projectionTexture(value: Nullable<BaseTexture>);
|
|
|
|
+ private static _IsProceduralTexture;
|
|
|
|
+ private static _IsTexture;
|
|
private _projectionTextureViewLightDirty;
|
|
private _projectionTextureViewLightDirty;
|
|
private _projectionTextureProjectionLightDirty;
|
|
private _projectionTextureProjectionLightDirty;
|
|
private _projectionTextureDirty;
|
|
private _projectionTextureDirty;
|
|
@@ -152521,6 +152649,10 @@ declare module BABYLON {
|
|
private _grainEnabled;
|
|
private _grainEnabled;
|
|
private _buildAllowed;
|
|
private _buildAllowed;
|
|
/**
|
|
/**
|
|
|
|
+ * This is triggered each time the pipeline has been built.
|
|
|
|
+ */
|
|
|
|
+ onBuildObservable: Observable<DefaultRenderingPipeline>;
|
|
|
|
+ /**
|
|
* Gets active scene
|
|
* Gets active scene
|
|
*/
|
|
*/
|
|
get scene(): Scene;
|
|
get scene(): Scene;
|