|
@@ -11815,6 +11815,29 @@ declare module "babylonjs/Materials/Textures/rawTexture" {
|
|
|
static CreateRTexture(data: ArrayBufferView, width: number, height: number, sceneOrEngine: Nullable<Scene | ThinEngine>, generateMipMaps?: boolean, invertY?: boolean, samplingMode?: number, type?: number): RawTexture;
|
|
|
}
|
|
|
}
|
|
|
+declare module "babylonjs/Engines/Extensions/engine.dynamicBuffer" {
|
|
|
+ import { DataBuffer } from "babylonjs/Meshes/dataBuffer";
|
|
|
+ import { IndicesArray, DataArray } from "babylonjs/types";
|
|
|
+ module "babylonjs/Engines/thinEngine" {
|
|
|
+ interface ThinEngine {
|
|
|
+ /**
|
|
|
+ * Update a dynamic index buffer
|
|
|
+ * @param indexBuffer defines the target index buffer
|
|
|
+ * @param indices defines the data to update
|
|
|
+ * @param offset defines the offset in the target index buffer where update should start
|
|
|
+ */
|
|
|
+ updateDynamicIndexBuffer(indexBuffer: DataBuffer, indices: IndicesArray, offset?: number): void;
|
|
|
+ /**
|
|
|
+ * Updates a dynamic vertex buffer.
|
|
|
+ * @param vertexBuffer the vertex buffer to update
|
|
|
+ * @param data the data used to update the vertex buffer
|
|
|
+ * @param byteOffset the byte offset of the data
|
|
|
+ * @param byteLength the byte length of the data
|
|
|
+ */
|
|
|
+ updateDynamicVertexBuffer(vertexBuffer: DataBuffer, data: DataArray, byteOffset?: number, byteLength?: number): void;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
declare module "babylonjs/Materials/Textures/Procedurals/proceduralTextureSceneComponent" {
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
import { ISceneComponent } from "babylonjs/sceneComponent";
|
|
@@ -12102,15 +12125,16 @@ declare module "babylonjs/Particles/baseParticleSystem" {
|
|
|
import { Vector2, Vector3 } from "babylonjs/Maths/math.vector";
|
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
|
import { ImageProcessingConfiguration, ImageProcessingConfigurationDefines } from "babylonjs/Materials/imageProcessingConfiguration";
|
|
|
- import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
|
- import { RawTexture } from "babylonjs/Materials/Textures/rawTexture";
|
|
|
import { ColorGradient, FactorGradient, Color3Gradient, IValueGradient } from "babylonjs/Misc/gradients";
|
|
|
import { BoxParticleEmitter, IParticleEmitterType, PointParticleEmitter, HemisphericParticleEmitter, SphereParticleEmitter, SphereDirectedParticleEmitter, CylinderParticleEmitter, CylinderDirectedParticleEmitter, ConeParticleEmitter } from "babylonjs/Particles/EmitterTypes/index";
|
|
|
- import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
|
+ import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
|
import { Color4 } from "babylonjs/Maths/math.color";
|
|
|
import { ThinEngine } from "babylonjs/Engines/thinEngine";
|
|
|
+ import "babylonjs/Engines/Extensions/engine.dynamicBuffer";
|
|
|
import { Animation } from "babylonjs/Animations/animation";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
+ import { ProceduralTexture } from "babylonjs/Materials/Textures/Procedurals/proceduralTexture";
|
|
|
+ import { RawTexture } from "babylonjs/Materials/Textures/rawTexture";
|
|
|
/**
|
|
|
* This represents the base class for particle system in Babylon.
|
|
|
* Particles are often small sprites used to simulate hard-to-reproduce phenomena like fire, smoke, water, or abstract visual effects like magic glitter and faery dust.
|
|
@@ -12245,7 +12269,7 @@ declare module "babylonjs/Particles/baseParticleSystem" {
|
|
|
/**
|
|
|
* The texture used to render each particle. (this can be a spritesheet)
|
|
|
*/
|
|
|
- particleTexture: Nullable<Texture>;
|
|
|
+ particleTexture: Nullable<BaseTexture>;
|
|
|
/**
|
|
|
* The layer mask we are rendering the particles through.
|
|
|
*/
|
|
@@ -12755,6 +12779,43 @@ declare module "babylonjs/Materials/thinMaterialHelper" {
|
|
|
static BindClipPlane(effect: Effect, holder: IClipPlanesHolder): void;
|
|
|
}
|
|
|
}
|
|
|
+declare module "babylonjs/Engines/Extensions/engine.alpha" {
|
|
|
+ module "babylonjs/Engines/thinEngine" {
|
|
|
+ interface ThinEngine {
|
|
|
+ /**
|
|
|
+ * Sets alpha constants used by some alpha blending modes
|
|
|
+ * @param r defines the red component
|
|
|
+ * @param g defines the green component
|
|
|
+ * @param b defines the blue component
|
|
|
+ * @param a defines the alpha component
|
|
|
+ */
|
|
|
+ setAlphaConstants(r: number, g: number, b: number, a: number): void;
|
|
|
+ /**
|
|
|
+ * Sets the current alpha mode
|
|
|
+ * @param mode defines the mode to use (one of the Engine.ALPHA_XXX)
|
|
|
+ * @param noDepthWriteChange defines if depth writing state should remains unchanged (false by default)
|
|
|
+ * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered
|
|
|
+ */
|
|
|
+ setAlphaMode(mode: number, noDepthWriteChange?: boolean): void;
|
|
|
+ /**
|
|
|
+ * Gets the current alpha mode
|
|
|
+ * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered
|
|
|
+ * @returns the current alpha mode
|
|
|
+ */
|
|
|
+ getAlphaMode(): number;
|
|
|
+ /**
|
|
|
+ * Sets the current alpha equation
|
|
|
+ * @param equation defines the equation to use (one of the Engine.ALPHA_EQUATION_XXX)
|
|
|
+ */
|
|
|
+ setAlphaEquation(equation: number): void;
|
|
|
+ /**
|
|
|
+ * Gets the current alpha equation.
|
|
|
+ * @returns the current alpha equation
|
|
|
+ */
|
|
|
+ getAlphaEquation(): number;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
declare module "babylonjs/Particles/particleSystem" {
|
|
|
import { Nullable } from "babylonjs/types";
|
|
|
import { FactorGradient, Color3Gradient } from "babylonjs/Misc/gradients";
|
|
@@ -12771,6 +12832,7 @@ declare module "babylonjs/Particles/particleSystem" {
|
|
|
import "babylonjs/Shaders/particles.vertex";
|
|
|
import { Color4, Color3 } from "babylonjs/Maths/math.color";
|
|
|
import { ThinEngine } from "babylonjs/Engines/thinEngine";
|
|
|
+ import "babylonjs/Engines/Extensions/engine.alpha";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
/**
|
|
|
* This represents a particle system in Babylon.
|
|
@@ -12863,6 +12925,8 @@ declare module "babylonjs/Particles/particleSystem" {
|
|
|
private _useRampGradients;
|
|
|
/** Gets or sets a matrix to use to compute projection */
|
|
|
defaultProjectionMatrix: Matrix;
|
|
|
+ /** Gets or sets a matrix to use to compute view */
|
|
|
+ defaultViewMatrix: Matrix;
|
|
|
/** Gets or sets a boolean indicating that ramp gradients must be used
|
|
|
* @see https://doc.babylonjs.com/babylon101/particles#ramp-gradients
|
|
|
*/
|
|
@@ -19344,6 +19408,10 @@ declare module "babylonjs/Cameras/Inputs/freeCameraTouchInput" {
|
|
|
*/
|
|
|
export class FreeCameraTouchInput implements ICameraInput<FreeCamera> {
|
|
|
/**
|
|
|
+ * Define if mouse events can be treated as touch events
|
|
|
+ */
|
|
|
+ allowMouse: boolean;
|
|
|
+ /**
|
|
|
* Defines the camera the input is attached to.
|
|
|
*/
|
|
|
camera: FreeCamera;
|
|
@@ -19364,6 +19432,16 @@ declare module "babylonjs/Cameras/Inputs/freeCameraTouchInput" {
|
|
|
private _observer;
|
|
|
private _onLostFocus;
|
|
|
/**
|
|
|
+ * Manage the touch inputs to control the movement of a free camera.
|
|
|
+ * @see https://doc.babylonjs.com/how_to/customizing_camera_inputs
|
|
|
+ * @param allowMouse Defines if mouse events can be treated as touch events
|
|
|
+ */
|
|
|
+ constructor(
|
|
|
+ /**
|
|
|
+ * Define if mouse events can be treated as touch events
|
|
|
+ */
|
|
|
+ allowMouse?: boolean);
|
|
|
+ /**
|
|
|
* Attach the input controls to a specific dom element to get the input from.
|
|
|
* @param element Defines the element the controls should be listened from
|
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
@@ -36350,6 +36428,15 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
|
_removePendingData(data: any): void;
|
|
|
offlineProvider: IOfflineProvider;
|
|
|
}
|
|
|
+ /**
|
|
|
+ * Information about the current host
|
|
|
+ */
|
|
|
+ export interface HostInformation {
|
|
|
+ /**
|
|
|
+ * Defines if the current host is a mobile
|
|
|
+ */
|
|
|
+ isMobile: boolean;
|
|
|
+ }
|
|
|
/** Interface defining initialization parameters for Engine class */
|
|
|
export interface EngineOptions extends WebGLContextAttributes {
|
|
|
/**
|
|
@@ -36605,6 +36692,10 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
|
private _activeRequests;
|
|
|
/** @hidden */
|
|
|
_transformTextureUrl: Nullable<(url: string) => string>;
|
|
|
+ /**
|
|
|
+ * Gets information about the current host
|
|
|
+ */
|
|
|
+ hostInformation: HostInformation;
|
|
|
protected get _supportsHardwareTextureRescaling(): boolean;
|
|
|
private _framebufferDimensionsObject;
|
|
|
/**
|
|
@@ -38447,43 +38538,6 @@ declare module "babylonjs/Misc/perfCounter" {
|
|
|
private _lastSecValueCount;
|
|
|
}
|
|
|
}
|
|
|
-declare module "babylonjs/Engines/Extensions/engine.alpha" {
|
|
|
- module "babylonjs/Engines/thinEngine" {
|
|
|
- interface ThinEngine {
|
|
|
- /**
|
|
|
- * Sets alpha constants used by some alpha blending modes
|
|
|
- * @param r defines the red component
|
|
|
- * @param g defines the green component
|
|
|
- * @param b defines the blue component
|
|
|
- * @param a defines the alpha component
|
|
|
- */
|
|
|
- setAlphaConstants(r: number, g: number, b: number, a: number): void;
|
|
|
- /**
|
|
|
- * Sets the current alpha mode
|
|
|
- * @param mode defines the mode to use (one of the Engine.ALPHA_XXX)
|
|
|
- * @param noDepthWriteChange defines if depth writing state should remains unchanged (false by default)
|
|
|
- * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered
|
|
|
- */
|
|
|
- setAlphaMode(mode: number, noDepthWriteChange?: boolean): void;
|
|
|
- /**
|
|
|
- * Gets the current alpha mode
|
|
|
- * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered
|
|
|
- * @returns the current alpha mode
|
|
|
- */
|
|
|
- getAlphaMode(): number;
|
|
|
- /**
|
|
|
- * Sets the current alpha equation
|
|
|
- * @param equation defines the equation to use (one of the Engine.ALPHA_EQUATION_XXX)
|
|
|
- */
|
|
|
- setAlphaEquation(equation: number): void;
|
|
|
- /**
|
|
|
- * Gets the current alpha equation.
|
|
|
- * @returns the current alpha equation
|
|
|
- */
|
|
|
- getAlphaEquation(): number;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
declare module "babylonjs/Engines/Extensions/engine.readTexture" {
|
|
|
import { InternalTexture } from "babylonjs/Materials/Textures/internalTexture";
|
|
|
import { Nullable } from "babylonjs/types";
|
|
@@ -38496,7 +38550,7 @@ declare module "babylonjs/Engines/Extensions/engine.readTexture" {
|
|
|
}
|
|
|
declare module "babylonjs/Engines/engine" {
|
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
|
- import { Nullable, IndicesArray, DataArray } from "babylonjs/types";
|
|
|
+ import { Nullable } from "babylonjs/types";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
import { InternalTexture } from "babylonjs/Materials/Textures/internalTexture";
|
|
|
import { IAudioEngine } from "babylonjs/Audio/audioEngine";
|
|
@@ -38513,6 +38567,7 @@ declare module "babylonjs/Engines/engine" {
|
|
|
import { PerfCounter } from "babylonjs/Misc/perfCounter";
|
|
|
import "babylonjs/Engines/Extensions/engine.alpha";
|
|
|
import "babylonjs/Engines/Extensions/engine.readTexture";
|
|
|
+ import "babylonjs/Engines/Extensions/engine.dynamicBuffer";
|
|
|
import { Material } from "babylonjs/Materials/material";
|
|
|
import { PostProcess } from "babylonjs/PostProcesses/postProcess";
|
|
|
/**
|
|
@@ -39222,14 +39277,6 @@ declare module "babylonjs/Engines/engine" {
|
|
|
* @returns true if the size was changed
|
|
|
*/
|
|
|
setSize(width: number, height: number): boolean;
|
|
|
- /**
|
|
|
- * Updates a dynamic vertex buffer.
|
|
|
- * @param vertexBuffer the vertex buffer to update
|
|
|
- * @param data the data used to update the vertex buffer
|
|
|
- * @param byteOffset the byte offset of the data
|
|
|
- * @param byteLength the byte length of the data
|
|
|
- */
|
|
|
- updateDynamicVertexBuffer(vertexBuffer: DataBuffer, data: DataArray, byteOffset?: number, byteLength?: number): void;
|
|
|
_deletePipelineContext(pipelineContext: IPipelineContext): void;
|
|
|
createShaderProgram(pipelineContext: IPipelineContext, vertexCode: string, fragmentCode: string, defines: Nullable<string>, context?: WebGLRenderingContext, transformFeedbackVaryings?: Nullable<string[]>): WebGLProgram;
|
|
|
protected _createShaderProgram(pipelineContext: WebGLPipelineContext, vertexShader: WebGLShader, fragmentShader: WebGLShader, context: WebGLRenderingContext, transformFeedbackVaryings?: Nullable<string[]>): WebGLProgram;
|
|
@@ -39258,13 +39305,6 @@ declare module "babylonjs/Engines/engine" {
|
|
|
/** @hidden */
|
|
|
_uploadImageToTexture(texture: InternalTexture, image: HTMLImageElement | ImageBitmap, faceIndex?: number, lod?: number): void;
|
|
|
/**
|
|
|
- * Update a dynamic index buffer
|
|
|
- * @param indexBuffer defines the target index buffer
|
|
|
- * @param indices defines the data to update
|
|
|
- * @param offset defines the offset in the target index buffer where update should start
|
|
|
- */
|
|
|
- updateDynamicIndexBuffer(indexBuffer: DataBuffer, indices: IndicesArray, offset?: number): void;
|
|
|
- /**
|
|
|
* Updates the sample count of a render target texture
|
|
|
* @see https://doc.babylonjs.com/features/webgl2#multisample-render-targets
|
|
|
* @param texture defines the texture to update
|
|
@@ -48828,31 +48868,35 @@ declare module "babylonjs/XR/webXRFeaturesManager" {
|
|
|
/**
|
|
|
* The name of the anchor system feature
|
|
|
*/
|
|
|
- static ANCHOR_SYSTEM: string;
|
|
|
+ static readonly ANCHOR_SYSTEM: string;
|
|
|
/**
|
|
|
* The name of the background remover feature
|
|
|
*/
|
|
|
- static BACKGROUND_REMOVER: string;
|
|
|
+ static readonly BACKGROUND_REMOVER: string;
|
|
|
/**
|
|
|
* The name of the hit test feature
|
|
|
*/
|
|
|
- static HIT_TEST: string;
|
|
|
+ static readonly HIT_TEST: string;
|
|
|
/**
|
|
|
* physics impostors for xr controllers feature
|
|
|
*/
|
|
|
- static PHYSICS_CONTROLLERS: string;
|
|
|
+ static readonly PHYSICS_CONTROLLERS: string;
|
|
|
/**
|
|
|
* The name of the plane detection feature
|
|
|
*/
|
|
|
- static PLANE_DETECTION: string;
|
|
|
+ static readonly PLANE_DETECTION: string;
|
|
|
/**
|
|
|
* The name of the pointer selection feature
|
|
|
*/
|
|
|
- static POINTER_SELECTION: string;
|
|
|
+ static readonly POINTER_SELECTION: string;
|
|
|
/**
|
|
|
* The name of the teleportation feature
|
|
|
*/
|
|
|
- static TELEPORTATION: string;
|
|
|
+ static readonly TELEPORTATION: string;
|
|
|
+ /**
|
|
|
+ * The name of the feature points feature.
|
|
|
+ */
|
|
|
+ static readonly FEATURE_POINTS: string;
|
|
|
}
|
|
|
/**
|
|
|
* Defining the constructor of a feature. Used to register the modules.
|
|
@@ -50630,7 +50674,7 @@ declare module "babylonjs/XR/features/WebXRControllerPointerSelection" {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -51178,7 +51222,7 @@ declare module "babylonjs/XR/features/WebXRControllerTeleportation" {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -53453,13 +53497,13 @@ declare module "babylonjs/DeviceInput/deviceInputSystem" {
|
|
|
* @returns Current value of input
|
|
|
*/
|
|
|
/**
|
|
|
- * Checks for current device input value, given an id and input index
|
|
|
+ * Checks for current device input value, given an id and input index. Throws exception if requested device not initialized.
|
|
|
* @param deviceType Enum specifiying device type
|
|
|
* @param deviceSlot "Slot" or index that device is referenced in
|
|
|
* @param inputIndex Id of input to be checked
|
|
|
* @returns Current value of input
|
|
|
*/
|
|
|
- pollInput(deviceType: DeviceType, deviceSlot: number, inputIndex: number): Nullable<number>;
|
|
|
+ pollInput(deviceType: DeviceType, deviceSlot: number, inputIndex: number): number;
|
|
|
/**
|
|
|
* Dispose of all the eventlisteners
|
|
|
*/
|
|
@@ -54366,6 +54410,7 @@ declare module "babylonjs/Engines/Extensions/index" {
|
|
|
export * from "babylonjs/Engines/Extensions/engine.renderTargetCube";
|
|
|
export * from "babylonjs/Engines/Extensions/engine.webVR";
|
|
|
export * from "babylonjs/Engines/Extensions/engine.uniformBuffer";
|
|
|
+ export * from "babylonjs/Engines/Extensions/engine.dynamicBuffer";
|
|
|
export * from "babylonjs/Engines/Extensions/engine.views";
|
|
|
export * from "babylonjs/Engines/Extensions/engine.readTexture";
|
|
|
import "babylonjs/Engines/Extensions/engine.textureSelector";
|
|
@@ -78222,7 +78267,7 @@ declare module "babylonjs/XR/features/WebXRHitTestLegacy" {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -78369,7 +78414,7 @@ declare module "babylonjs/XR/features/WebXRHitTest" {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -78477,7 +78522,7 @@ declare module "babylonjs/XR/features/WebXRAnchorSystem" {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -78613,7 +78658,7 @@ declare module "babylonjs/XR/features/WebXRPlaneDetector" {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -78703,7 +78748,7 @@ declare module "babylonjs/XR/features/WebXRBackgroundRemover" {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -78839,7 +78884,7 @@ declare module "babylonjs/XR/features/WebXRControllerPhysics" {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -78906,6 +78951,83 @@ declare module "babylonjs/XR/features/WebXRControllerPhysics" {
|
|
|
private _detachController;
|
|
|
}
|
|
|
}
|
|
|
+declare module "babylonjs/XR/features/WebXRFeaturePointSystem" {
|
|
|
+ import { WebXRSessionManager } from "babylonjs/XR/webXRSessionManager";
|
|
|
+ import { Observable } from "babylonjs/Misc/observable";
|
|
|
+ import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
|
+ import { WebXRAbstractFeature } from "babylonjs/XR/features/WebXRAbstractFeature";
|
|
|
+ /**
|
|
|
+ * A babylon interface for a "WebXR" feature point.
|
|
|
+ * Represents the position and confidence value of a given feature point.
|
|
|
+ */
|
|
|
+ export interface IWebXRFeaturePoint {
|
|
|
+ /**
|
|
|
+ * Represents the position of the feature point in world space.
|
|
|
+ */
|
|
|
+ position: Vector3;
|
|
|
+ /**
|
|
|
+ * Represents the confidence value of the feature point in world space. 0 being least confident, and 1 being most confident.
|
|
|
+ */
|
|
|
+ confidenceValue: number;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * The feature point system is used to detect feature points from real world geometry.
|
|
|
+ * This feature is currently experimental and only supported on BabylonNative, and should not be used in the browser.
|
|
|
+ * The newly introduced API can be seen in webxr.nativeextensions.d.ts and described in FeaturePoints.md.
|
|
|
+ */
|
|
|
+ export class WebXRFeaturePointSystem extends WebXRAbstractFeature {
|
|
|
+ private _enabled;
|
|
|
+ private _featurePointCloud;
|
|
|
+ /**
|
|
|
+ * The module's name
|
|
|
+ */
|
|
|
+ static readonly Name: string;
|
|
|
+ /**
|
|
|
+ * The (Babylon) version of this module.
|
|
|
+ * This is an integer representing the implementation version.
|
|
|
+ * This number does not correspond to the WebXR specs version
|
|
|
+ */
|
|
|
+ static readonly Version: number;
|
|
|
+ /**
|
|
|
+ * Observers registered here will be executed whenever new feature points are added (on XRFrame while the session is tracking).
|
|
|
+ * Will notify the observers about which feature points have been added.
|
|
|
+ */
|
|
|
+ readonly onFeaturePointsAddedObservable: Observable<number[]>;
|
|
|
+ /**
|
|
|
+ * Observers registered here will be executed whenever a feature point has been updated (on XRFrame while the session is tracking).
|
|
|
+ * Will notify the observers about which feature points have been updated.
|
|
|
+ */
|
|
|
+ readonly onFeaturePointsUpdatedObservable: Observable<number[]>;
|
|
|
+ /**
|
|
|
+ * The current feature point cloud maintained across frames.
|
|
|
+ */
|
|
|
+ get featurePointCloud(): Array<IWebXRFeaturePoint>;
|
|
|
+ /**
|
|
|
+ * construct the feature point system
|
|
|
+ * @param _xrSessionManager an instance of xr Session manager
|
|
|
+ */
|
|
|
+ constructor(_xrSessionManager: WebXRSessionManager);
|
|
|
+ /**
|
|
|
+ * Detach this feature.
|
|
|
+ * Will usually be called by the features manager
|
|
|
+ *
|
|
|
+ * @returns true if successful.
|
|
|
+ */
|
|
|
+ detach(): boolean;
|
|
|
+ /**
|
|
|
+ * Dispose this feature and all of the resources attached
|
|
|
+ */
|
|
|
+ dispose(): void;
|
|
|
+ /**
|
|
|
+ * On receiving a new XR frame if this feature is attached notify observers new feature point data is available.
|
|
|
+ */
|
|
|
+ protected _onXRFrame(frame: XRFrame): void;
|
|
|
+ /**
|
|
|
+ * Initializes the feature. If the feature point feature is not available for this environment do not mark the feature as enabled.
|
|
|
+ */
|
|
|
+ private _init;
|
|
|
+ }
|
|
|
+}
|
|
|
declare module "babylonjs/XR/features/index" {
|
|
|
export * from "babylonjs/XR/features/WebXRHitTestLegacy";
|
|
|
export * from "babylonjs/XR/features/WebXRAnchorSystem";
|
|
@@ -78915,6 +79037,7 @@ declare module "babylonjs/XR/features/index" {
|
|
|
export * from "babylonjs/XR/features/WebXRControllerPointerSelection";
|
|
|
export * from "babylonjs/XR/features/WebXRControllerPhysics";
|
|
|
export * from "babylonjs/XR/features/WebXRHitTest";
|
|
|
+ export * from "babylonjs/XR/features/WebXRFeaturePointSystem";
|
|
|
}
|
|
|
declare module "babylonjs/XR/motionController/webXRMicrosoftMixedRealityController" {
|
|
|
import { WebXRAbstractMotionController, IMinimalMotionControllerObject, MotionControllerHandedness } from "babylonjs/XR/motionController/webXRAbstractMotionController";
|
|
@@ -90837,6 +90960,25 @@ declare module BABYLON {
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
+ interface ThinEngine {
|
|
|
+ /**
|
|
|
+ * Update a dynamic index buffer
|
|
|
+ * @param indexBuffer defines the target index buffer
|
|
|
+ * @param indices defines the data to update
|
|
|
+ * @param offset defines the offset in the target index buffer where update should start
|
|
|
+ */
|
|
|
+ updateDynamicIndexBuffer(indexBuffer: DataBuffer, indices: IndicesArray, offset?: number): void;
|
|
|
+ /**
|
|
|
+ * Updates a dynamic vertex buffer.
|
|
|
+ * @param vertexBuffer the vertex buffer to update
|
|
|
+ * @param data the data used to update the vertex buffer
|
|
|
+ * @param byteOffset the byte offset of the data
|
|
|
+ * @param byteLength the byte length of the data
|
|
|
+ */
|
|
|
+ updateDynamicVertexBuffer(vertexBuffer: DataBuffer, data: DataArray, byteOffset?: number, byteLength?: number): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
interface AbstractScene {
|
|
|
/**
|
|
|
* The list of procedural textures added to the scene
|
|
@@ -91234,7 +91376,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* The texture used to render each particle. (this can be a spritesheet)
|
|
|
*/
|
|
|
- particleTexture: Nullable<Texture>;
|
|
|
+ particleTexture: Nullable<BaseTexture>;
|
|
|
/**
|
|
|
* The layer mask we are rendering the particles through.
|
|
|
*/
|
|
@@ -91731,6 +91873,41 @@ declare module BABYLON {
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
+ interface ThinEngine {
|
|
|
+ /**
|
|
|
+ * Sets alpha constants used by some alpha blending modes
|
|
|
+ * @param r defines the red component
|
|
|
+ * @param g defines the green component
|
|
|
+ * @param b defines the blue component
|
|
|
+ * @param a defines the alpha component
|
|
|
+ */
|
|
|
+ setAlphaConstants(r: number, g: number, b: number, a: number): void;
|
|
|
+ /**
|
|
|
+ * Sets the current alpha mode
|
|
|
+ * @param mode defines the mode to use (one of the Engine.ALPHA_XXX)
|
|
|
+ * @param noDepthWriteChange defines if depth writing state should remains unchanged (false by default)
|
|
|
+ * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered
|
|
|
+ */
|
|
|
+ setAlphaMode(mode: number, noDepthWriteChange?: boolean): void;
|
|
|
+ /**
|
|
|
+ * Gets the current alpha mode
|
|
|
+ * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered
|
|
|
+ * @returns the current alpha mode
|
|
|
+ */
|
|
|
+ getAlphaMode(): number;
|
|
|
+ /**
|
|
|
+ * Sets the current alpha equation
|
|
|
+ * @param equation defines the equation to use (one of the Engine.ALPHA_EQUATION_XXX)
|
|
|
+ */
|
|
|
+ setAlphaEquation(equation: number): void;
|
|
|
+ /**
|
|
|
+ * Gets the current alpha equation.
|
|
|
+ * @returns the current alpha equation
|
|
|
+ */
|
|
|
+ getAlphaEquation(): number;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
/**
|
|
|
* This represents a particle system in Babylon.
|
|
|
* Particles are often small sprites used to simulate hard-to-reproduce phenomena like fire, smoke, water, or abstract visual effects like magic glitter and faery dust.
|
|
@@ -91822,6 +91999,8 @@ declare module BABYLON {
|
|
|
private _useRampGradients;
|
|
|
/** Gets or sets a matrix to use to compute projection */
|
|
|
defaultProjectionMatrix: Matrix;
|
|
|
+ /** Gets or sets a matrix to use to compute view */
|
|
|
+ defaultViewMatrix: Matrix;
|
|
|
/** Gets or sets a boolean indicating that ramp gradients must be used
|
|
|
* @see https://doc.babylonjs.com/babylon101/particles#ramp-gradients
|
|
|
*/
|
|
@@ -98064,6 +98243,10 @@ declare module BABYLON {
|
|
|
*/
|
|
|
export class FreeCameraTouchInput implements ICameraInput<FreeCamera> {
|
|
|
/**
|
|
|
+ * Define if mouse events can be treated as touch events
|
|
|
+ */
|
|
|
+ allowMouse: boolean;
|
|
|
+ /**
|
|
|
* Defines the camera the input is attached to.
|
|
|
*/
|
|
|
camera: FreeCamera;
|
|
@@ -98084,6 +98267,16 @@ declare module BABYLON {
|
|
|
private _observer;
|
|
|
private _onLostFocus;
|
|
|
/**
|
|
|
+ * Manage the touch inputs to control the movement of a free camera.
|
|
|
+ * @see https://doc.babylonjs.com/how_to/customizing_camera_inputs
|
|
|
+ * @param allowMouse Defines if mouse events can be treated as touch events
|
|
|
+ */
|
|
|
+ constructor(
|
|
|
+ /**
|
|
|
+ * Define if mouse events can be treated as touch events
|
|
|
+ */
|
|
|
+ allowMouse?: boolean);
|
|
|
+ /**
|
|
|
* Attach the input controls to a specific dom element to get the input from.
|
|
|
* @param element Defines the element the controls should be listened from
|
|
|
* @param noPreventDefault Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
|
|
@@ -114357,6 +114550,15 @@ declare module BABYLON {
|
|
|
_removePendingData(data: any): void;
|
|
|
offlineProvider: IOfflineProvider;
|
|
|
}
|
|
|
+ /**
|
|
|
+ * Information about the current host
|
|
|
+ */
|
|
|
+ export interface HostInformation {
|
|
|
+ /**
|
|
|
+ * Defines if the current host is a mobile
|
|
|
+ */
|
|
|
+ isMobile: boolean;
|
|
|
+ }
|
|
|
/** Interface defining initialization parameters for Engine class */
|
|
|
export interface EngineOptions extends WebGLContextAttributes {
|
|
|
/**
|
|
@@ -114612,6 +114814,10 @@ declare module BABYLON {
|
|
|
private _activeRequests;
|
|
|
/** @hidden */
|
|
|
_transformTextureUrl: Nullable<(url: string) => string>;
|
|
|
+ /**
|
|
|
+ * Gets information about the current host
|
|
|
+ */
|
|
|
+ hostInformation: HostInformation;
|
|
|
protected get _supportsHardwareTextureRescaling(): boolean;
|
|
|
private _framebufferDimensionsObject;
|
|
|
/**
|
|
@@ -116444,41 +116650,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
interface ThinEngine {
|
|
|
- /**
|
|
|
- * Sets alpha constants used by some alpha blending modes
|
|
|
- * @param r defines the red component
|
|
|
- * @param g defines the green component
|
|
|
- * @param b defines the blue component
|
|
|
- * @param a defines the alpha component
|
|
|
- */
|
|
|
- setAlphaConstants(r: number, g: number, b: number, a: number): void;
|
|
|
- /**
|
|
|
- * Sets the current alpha mode
|
|
|
- * @param mode defines the mode to use (one of the Engine.ALPHA_XXX)
|
|
|
- * @param noDepthWriteChange defines if depth writing state should remains unchanged (false by default)
|
|
|
- * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered
|
|
|
- */
|
|
|
- setAlphaMode(mode: number, noDepthWriteChange?: boolean): void;
|
|
|
- /**
|
|
|
- * Gets the current alpha mode
|
|
|
- * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered
|
|
|
- * @returns the current alpha mode
|
|
|
- */
|
|
|
- getAlphaMode(): number;
|
|
|
- /**
|
|
|
- * Sets the current alpha equation
|
|
|
- * @param equation defines the equation to use (one of the Engine.ALPHA_EQUATION_XXX)
|
|
|
- */
|
|
|
- setAlphaEquation(equation: number): void;
|
|
|
- /**
|
|
|
- * Gets the current alpha equation.
|
|
|
- * @returns the current alpha equation
|
|
|
- */
|
|
|
- getAlphaEquation(): number;
|
|
|
- }
|
|
|
-}
|
|
|
-declare module BABYLON {
|
|
|
- interface ThinEngine {
|
|
|
/** @hidden */
|
|
|
_readTexturePixels(texture: InternalTexture, width: number, height: number, faceIndex?: number, level?: number, buffer?: Nullable<ArrayBufferView>): ArrayBufferView;
|
|
|
}
|
|
@@ -117191,14 +117362,6 @@ declare module BABYLON {
|
|
|
* @returns true if the size was changed
|
|
|
*/
|
|
|
setSize(width: number, height: number): boolean;
|
|
|
- /**
|
|
|
- * Updates a dynamic vertex buffer.
|
|
|
- * @param vertexBuffer the vertex buffer to update
|
|
|
- * @param data the data used to update the vertex buffer
|
|
|
- * @param byteOffset the byte offset of the data
|
|
|
- * @param byteLength the byte length of the data
|
|
|
- */
|
|
|
- updateDynamicVertexBuffer(vertexBuffer: DataBuffer, data: DataArray, byteOffset?: number, byteLength?: number): void;
|
|
|
_deletePipelineContext(pipelineContext: IPipelineContext): void;
|
|
|
createShaderProgram(pipelineContext: IPipelineContext, vertexCode: string, fragmentCode: string, defines: Nullable<string>, context?: WebGLRenderingContext, transformFeedbackVaryings?: Nullable<string[]>): WebGLProgram;
|
|
|
protected _createShaderProgram(pipelineContext: WebGLPipelineContext, vertexShader: WebGLShader, fragmentShader: WebGLShader, context: WebGLRenderingContext, transformFeedbackVaryings?: Nullable<string[]>): WebGLProgram;
|
|
@@ -117227,13 +117390,6 @@ declare module BABYLON {
|
|
|
/** @hidden */
|
|
|
_uploadImageToTexture(texture: InternalTexture, image: HTMLImageElement | ImageBitmap, faceIndex?: number, lod?: number): void;
|
|
|
/**
|
|
|
- * Update a dynamic index buffer
|
|
|
- * @param indexBuffer defines the target index buffer
|
|
|
- * @param indices defines the data to update
|
|
|
- * @param offset defines the offset in the target index buffer where update should start
|
|
|
- */
|
|
|
- updateDynamicIndexBuffer(indexBuffer: DataBuffer, indices: IndicesArray, offset?: number): void;
|
|
|
- /**
|
|
|
* Updates the sample count of a render target texture
|
|
|
* @see https://doc.babylonjs.com/features/webgl2#multisample-render-targets
|
|
|
* @param texture defines the texture to update
|
|
@@ -126316,31 +126472,35 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* The name of the anchor system feature
|
|
|
*/
|
|
|
- static ANCHOR_SYSTEM: string;
|
|
|
+ static readonly ANCHOR_SYSTEM: string;
|
|
|
/**
|
|
|
* The name of the background remover feature
|
|
|
*/
|
|
|
- static BACKGROUND_REMOVER: string;
|
|
|
+ static readonly BACKGROUND_REMOVER: string;
|
|
|
/**
|
|
|
* The name of the hit test feature
|
|
|
*/
|
|
|
- static HIT_TEST: string;
|
|
|
+ static readonly HIT_TEST: string;
|
|
|
/**
|
|
|
* physics impostors for xr controllers feature
|
|
|
*/
|
|
|
- static PHYSICS_CONTROLLERS: string;
|
|
|
+ static readonly PHYSICS_CONTROLLERS: string;
|
|
|
/**
|
|
|
* The name of the plane detection feature
|
|
|
*/
|
|
|
- static PLANE_DETECTION: string;
|
|
|
+ static readonly PLANE_DETECTION: string;
|
|
|
/**
|
|
|
* The name of the pointer selection feature
|
|
|
*/
|
|
|
- static POINTER_SELECTION: string;
|
|
|
+ static readonly POINTER_SELECTION: string;
|
|
|
/**
|
|
|
* The name of the teleportation feature
|
|
|
*/
|
|
|
- static TELEPORTATION: string;
|
|
|
+ static readonly TELEPORTATION: string;
|
|
|
+ /**
|
|
|
+ * The name of the feature points feature.
|
|
|
+ */
|
|
|
+ static readonly FEATURE_POINTS: string;
|
|
|
}
|
|
|
/**
|
|
|
* Defining the constructor of a feature. Used to register the modules.
|
|
@@ -128053,7 +128213,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -128580,7 +128740,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -130647,13 +130807,13 @@ declare module BABYLON {
|
|
|
* @returns Current value of input
|
|
|
*/
|
|
|
/**
|
|
|
- * Checks for current device input value, given an id and input index
|
|
|
+ * Checks for current device input value, given an id and input index. Throws exception if requested device not initialized.
|
|
|
* @param deviceType Enum specifiying device type
|
|
|
* @param deviceSlot "Slot" or index that device is referenced in
|
|
|
* @param inputIndex Id of input to be checked
|
|
|
* @returns Current value of input
|
|
|
*/
|
|
|
- pollInput(deviceType: DeviceType, deviceSlot: number, inputIndex: number): Nullable<number>;
|
|
|
+ pollInput(deviceType: DeviceType, deviceSlot: number, inputIndex: number): number;
|
|
|
/**
|
|
|
* Dispose of all the eventlisteners
|
|
|
*/
|
|
@@ -153349,7 +153509,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -153491,7 +153651,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -153593,7 +153753,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -153724,7 +153884,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -153810,7 +153970,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -153940,7 +154100,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* The module's name
|
|
|
*/
|
|
|
- static readonly Name: string;
|
|
|
+ static readonly Name: string;
|
|
|
/**
|
|
|
* The (Babylon) version of this module.
|
|
|
* This is an integer representing the implementation version.
|
|
@@ -154009,6 +154169,79 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
+ * A babylon interface for a "WebXR" feature point.
|
|
|
+ * Represents the position and confidence value of a given feature point.
|
|
|
+ */
|
|
|
+ export interface IWebXRFeaturePoint {
|
|
|
+ /**
|
|
|
+ * Represents the position of the feature point in world space.
|
|
|
+ */
|
|
|
+ position: Vector3;
|
|
|
+ /**
|
|
|
+ * Represents the confidence value of the feature point in world space. 0 being least confident, and 1 being most confident.
|
|
|
+ */
|
|
|
+ confidenceValue: number;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * The feature point system is used to detect feature points from real world geometry.
|
|
|
+ * This feature is currently experimental and only supported on BabylonNative, and should not be used in the browser.
|
|
|
+ * The newly introduced API can be seen in webxr.nativeextensions.d.ts and described in FeaturePoints.md.
|
|
|
+ */
|
|
|
+ export class WebXRFeaturePointSystem extends WebXRAbstractFeature {
|
|
|
+ private _enabled;
|
|
|
+ private _featurePointCloud;
|
|
|
+ /**
|
|
|
+ * The module's name
|
|
|
+ */
|
|
|
+ static readonly Name: string;
|
|
|
+ /**
|
|
|
+ * The (Babylon) version of this module.
|
|
|
+ * This is an integer representing the implementation version.
|
|
|
+ * This number does not correspond to the WebXR specs version
|
|
|
+ */
|
|
|
+ static readonly Version: number;
|
|
|
+ /**
|
|
|
+ * Observers registered here will be executed whenever new feature points are added (on XRFrame while the session is tracking).
|
|
|
+ * Will notify the observers about which feature points have been added.
|
|
|
+ */
|
|
|
+ readonly onFeaturePointsAddedObservable: Observable<number[]>;
|
|
|
+ /**
|
|
|
+ * Observers registered here will be executed whenever a feature point has been updated (on XRFrame while the session is tracking).
|
|
|
+ * Will notify the observers about which feature points have been updated.
|
|
|
+ */
|
|
|
+ readonly onFeaturePointsUpdatedObservable: Observable<number[]>;
|
|
|
+ /**
|
|
|
+ * The current feature point cloud maintained across frames.
|
|
|
+ */
|
|
|
+ get featurePointCloud(): Array<IWebXRFeaturePoint>;
|
|
|
+ /**
|
|
|
+ * construct the feature point system
|
|
|
+ * @param _xrSessionManager an instance of xr Session manager
|
|
|
+ */
|
|
|
+ constructor(_xrSessionManager: WebXRSessionManager);
|
|
|
+ /**
|
|
|
+ * Detach this feature.
|
|
|
+ * Will usually be called by the features manager
|
|
|
+ *
|
|
|
+ * @returns true if successful.
|
|
|
+ */
|
|
|
+ detach(): boolean;
|
|
|
+ /**
|
|
|
+ * Dispose this feature and all of the resources attached
|
|
|
+ */
|
|
|
+ dispose(): void;
|
|
|
+ /**
|
|
|
+ * On receiving a new XR frame if this feature is attached notify observers new feature point data is available.
|
|
|
+ */
|
|
|
+ protected _onXRFrame(frame: XRFrame): void;
|
|
|
+ /**
|
|
|
+ * Initializes the feature. If the feature point feature is not available for this environment do not mark the feature as enabled.
|
|
|
+ */
|
|
|
+ private _init;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
+ /**
|
|
|
* The motion controller class for all microsoft mixed reality controllers
|
|
|
*/
|
|
|
export class WebXRMicrosoftMixedRealityController extends WebXRAbstractMotionController {
|
|
@@ -154973,4 +155206,15 @@ interface XRPlane {
|
|
|
planeSpace: XRSpace;
|
|
|
polygon: Array<DOMPointReadOnly>;
|
|
|
lastChangedTime: number;
|
|
|
+}
|
|
|
+// This file contains native only extensions for WebXR These APIs are not supported in the browser yet.
|
|
|
+// They are intended for use with either Babylon Native https://github.com/BabylonJS/BabylonNative or
|
|
|
+// Babylon React Native: https://github.com/BabylonJS/BabylonReactNative
|
|
|
+
|
|
|
+interface XRSession {
|
|
|
+ trySetFeaturePointCloudEnabled(enabled: boolean): boolean;
|
|
|
+}
|
|
|
+
|
|
|
+interface XRFrame {
|
|
|
+ featurePointCloud? : Array<number>;
|
|
|
}
|