|
@@ -44010,16 +44010,16 @@ declare module "babylonjs/Cameras/XR/webXRSessionManager" {
|
|
/**
|
|
/**
|
|
* Initializes an xr session
|
|
* Initializes an xr session
|
|
* @param xrSessionMode mode to initialize
|
|
* @param xrSessionMode mode to initialize
|
|
- * @param optionalFeatures defines optional values to pass to the session builder
|
|
|
|
|
|
+ * @param xrSessionInit defines optional and required values to pass to the session builder
|
|
* @returns a promise which will resolve once the session has been initialized
|
|
* @returns a promise which will resolve once the session has been initialized
|
|
*/
|
|
*/
|
|
- initializeSessionAsync(xrSessionMode: XRSessionMode, optionalFeatures?: any): Promise<XRSession>;
|
|
|
|
|
|
+ initializeSessionAsync(xrSessionMode?: XRSessionMode, xrSessionInit?: XRSessionInit): Promise<XRSession>;
|
|
/**
|
|
/**
|
|
* Sets the reference space on the xr session
|
|
* Sets the reference space on the xr session
|
|
* @param referenceSpace space to set
|
|
* @param referenceSpace space to set
|
|
* @returns a promise that will resolve once the reference space has been set
|
|
* @returns a promise that will resolve once the reference space has been set
|
|
*/
|
|
*/
|
|
- setReferenceSpaceAsync(referenceSpace: XRReferenceSpaceType): Promise<void>;
|
|
|
|
|
|
+ setReferenceSpaceAsync(referenceSpace?: XRReferenceSpaceType): Promise<XRReferenceSpace>;
|
|
/**
|
|
/**
|
|
* Resets the reference space to the one started the session
|
|
* Resets the reference space to the one started the session
|
|
*/
|
|
*/
|
|
@@ -44032,9 +44032,8 @@ declare module "babylonjs/Cameras/XR/webXRSessionManager" {
|
|
updateRenderStateAsync(state: XRRenderState): Promise<void>;
|
|
updateRenderStateAsync(state: XRRenderState): Promise<void>;
|
|
/**
|
|
/**
|
|
* Starts rendering to the xr layer
|
|
* Starts rendering to the xr layer
|
|
- * @returns a promise that will resolve once rendering has started
|
|
|
|
*/
|
|
*/
|
|
- startRenderingToXRAsync(): Promise<void>;
|
|
|
|
|
|
+ runXRRenderLoop(): void;
|
|
/**
|
|
/**
|
|
* Gets the correct render target texture to be rendered this frame for this eye
|
|
* Gets the correct render target texture to be rendered this frame for this eye
|
|
* @param eye the eye for which to get the render target
|
|
* @param eye the eye for which to get the render target
|
|
@@ -44051,7 +44050,7 @@ declare module "babylonjs/Cameras/XR/webXRSessionManager" {
|
|
* @param sessionMode session mode to check if supported eg. immersive-vr
|
|
* @param sessionMode session mode to check if supported eg. immersive-vr
|
|
* @returns true if supported
|
|
* @returns true if supported
|
|
*/
|
|
*/
|
|
- supportsSessionAsync(sessionMode: XRSessionMode): Promise<boolean>;
|
|
|
|
|
|
+ isSessionSupportedAsync(sessionMode: XRSessionMode): Promise<boolean>;
|
|
/**
|
|
/**
|
|
* Creates a WebXRRenderTarget object for the XR session
|
|
* Creates a WebXRRenderTarget object for the XR session
|
|
* @param onStateChangedObservable optional, mechanism for enabling/disabling XR rendering canvas, used only on Web
|
|
* @param onStateChangedObservable optional, mechanism for enabling/disabling XR rendering canvas, used only on Web
|
|
@@ -44323,7 +44322,7 @@ declare module "babylonjs/Cameras/XR/webXRExperienceHelper" {
|
|
* @param renderTarget the output canvas that will be used to enter XR mode
|
|
* @param renderTarget the output canvas that will be used to enter XR mode
|
|
* @returns promise that resolves after xr mode has entered
|
|
* @returns promise that resolves after xr mode has entered
|
|
*/
|
|
*/
|
|
- enterXRAsync(sessionMode: XRSessionMode, referenceSpaceType: XRReferenceSpaceType, renderTarget: WebXRRenderTarget): Promise<WebXRSessionManager>;
|
|
|
|
|
|
+ enterXRAsync(sessionMode: XRSessionMode, referenceSpaceType: XRReferenceSpaceType, renderTarget?: WebXRRenderTarget): Promise<WebXRSessionManager>;
|
|
/**
|
|
/**
|
|
* Disposes of the experience helper
|
|
* Disposes of the experience helper
|
|
*/
|
|
*/
|
|
@@ -45344,7 +45343,7 @@ declare module "babylonjs/Cameras/XR/webXRController" {
|
|
* Using this object it is possible to get click events and trackpad changes of the
|
|
* Using this object it is possible to get click events and trackpad changes of the
|
|
* webxr controller that is currently being used.
|
|
* webxr controller that is currently being used.
|
|
*/
|
|
*/
|
|
- gamepadController?: WebXRAbstractMotionController;
|
|
|
|
|
|
+ motionController?: WebXRAbstractMotionController;
|
|
/**
|
|
/**
|
|
* Event that fires when the controller is removed/disposed
|
|
* Event that fires when the controller is removed/disposed
|
|
*/
|
|
*/
|
|
@@ -45480,13 +45479,13 @@ declare module "babylonjs/Cameras/XR/features/WebXRAbstractFeature" {
|
|
/**
|
|
/**
|
|
* attach this feature
|
|
* attach this feature
|
|
*
|
|
*
|
|
- * @returns true if successful.
|
|
|
|
|
|
+ * @returns true if successful, false is failed or already attached
|
|
*/
|
|
*/
|
|
attach(): boolean;
|
|
attach(): boolean;
|
|
/**
|
|
/**
|
|
* detach this feature.
|
|
* detach this feature.
|
|
*
|
|
*
|
|
- * @returns true if successful.
|
|
|
|
|
|
+ * @returns true if successful, false if failed or already detached
|
|
*/
|
|
*/
|
|
detach(): boolean;
|
|
detach(): boolean;
|
|
/**
|
|
/**
|
|
@@ -45582,6 +45581,14 @@ declare module "babylonjs/Cameras/XR/features/WebXRControllerPointerSelection" {
|
|
* Default color of the laser pointer
|
|
* Default color of the laser pointer
|
|
*/
|
|
*/
|
|
lasterPointerDefaultColor: Color3;
|
|
lasterPointerDefaultColor: Color3;
|
|
|
|
+ /**
|
|
|
|
+ * Should the laser pointer be displayed
|
|
|
|
+ */
|
|
|
|
+ displayLaserPointer: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Should the selection mesh be displayed (The ring at the end of the laser pointer)
|
|
|
|
+ */
|
|
|
|
+ displaySelectionMesh: boolean;
|
|
private static _idCounter;
|
|
private static _idCounter;
|
|
private _tmpRay;
|
|
private _tmpRay;
|
|
private _controllers;
|
|
private _controllers;
|
|
@@ -61124,7 +61131,6 @@ declare module "babylonjs/Materials/Node/Blocks/Vertex/morphTargetsBlock" {
|
|
*/
|
|
*/
|
|
export class MorphTargetsBlock extends NodeMaterialBlock {
|
|
export class MorphTargetsBlock extends NodeMaterialBlock {
|
|
private _repeatableContentAnchor;
|
|
private _repeatableContentAnchor;
|
|
- private _repeatebleContentGenerated;
|
|
|
|
/**
|
|
/**
|
|
* Create a new MorphTargetsBlock
|
|
* Create a new MorphTargetsBlock
|
|
* @param name defines the block name
|
|
* @param name defines the block name
|
|
@@ -115199,16 +115205,16 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Initializes an xr session
|
|
* Initializes an xr session
|
|
* @param xrSessionMode mode to initialize
|
|
* @param xrSessionMode mode to initialize
|
|
- * @param optionalFeatures defines optional values to pass to the session builder
|
|
|
|
|
|
+ * @param xrSessionInit defines optional and required values to pass to the session builder
|
|
* @returns a promise which will resolve once the session has been initialized
|
|
* @returns a promise which will resolve once the session has been initialized
|
|
*/
|
|
*/
|
|
- initializeSessionAsync(xrSessionMode: XRSessionMode, optionalFeatures?: any): Promise<XRSession>;
|
|
|
|
|
|
+ initializeSessionAsync(xrSessionMode?: XRSessionMode, xrSessionInit?: XRSessionInit): Promise<XRSession>;
|
|
/**
|
|
/**
|
|
* Sets the reference space on the xr session
|
|
* Sets the reference space on the xr session
|
|
* @param referenceSpace space to set
|
|
* @param referenceSpace space to set
|
|
* @returns a promise that will resolve once the reference space has been set
|
|
* @returns a promise that will resolve once the reference space has been set
|
|
*/
|
|
*/
|
|
- setReferenceSpaceAsync(referenceSpace: XRReferenceSpaceType): Promise<void>;
|
|
|
|
|
|
+ setReferenceSpaceAsync(referenceSpace?: XRReferenceSpaceType): Promise<XRReferenceSpace>;
|
|
/**
|
|
/**
|
|
* Resets the reference space to the one started the session
|
|
* Resets the reference space to the one started the session
|
|
*/
|
|
*/
|
|
@@ -115221,9 +115227,8 @@ declare module BABYLON {
|
|
updateRenderStateAsync(state: XRRenderState): Promise<void>;
|
|
updateRenderStateAsync(state: XRRenderState): Promise<void>;
|
|
/**
|
|
/**
|
|
* Starts rendering to the xr layer
|
|
* Starts rendering to the xr layer
|
|
- * @returns a promise that will resolve once rendering has started
|
|
|
|
*/
|
|
*/
|
|
- startRenderingToXRAsync(): Promise<void>;
|
|
|
|
|
|
+ runXRRenderLoop(): void;
|
|
/**
|
|
/**
|
|
* Gets the correct render target texture to be rendered this frame for this eye
|
|
* Gets the correct render target texture to be rendered this frame for this eye
|
|
* @param eye the eye for which to get the render target
|
|
* @param eye the eye for which to get the render target
|
|
@@ -115240,7 +115245,7 @@ declare module BABYLON {
|
|
* @param sessionMode session mode to check if supported eg. immersive-vr
|
|
* @param sessionMode session mode to check if supported eg. immersive-vr
|
|
* @returns true if supported
|
|
* @returns true if supported
|
|
*/
|
|
*/
|
|
- supportsSessionAsync(sessionMode: XRSessionMode): Promise<boolean>;
|
|
|
|
|
|
+ isSessionSupportedAsync(sessionMode: XRSessionMode): Promise<boolean>;
|
|
/**
|
|
/**
|
|
* Creates a WebXRRenderTarget object for the XR session
|
|
* Creates a WebXRRenderTarget object for the XR session
|
|
* @param onStateChangedObservable optional, mechanism for enabling/disabling XR rendering canvas, used only on Web
|
|
* @param onStateChangedObservable optional, mechanism for enabling/disabling XR rendering canvas, used only on Web
|
|
@@ -115500,7 +115505,7 @@ declare module BABYLON {
|
|
* @param renderTarget the output canvas that will be used to enter XR mode
|
|
* @param renderTarget the output canvas that will be used to enter XR mode
|
|
* @returns promise that resolves after xr mode has entered
|
|
* @returns promise that resolves after xr mode has entered
|
|
*/
|
|
*/
|
|
- enterXRAsync(sessionMode: XRSessionMode, referenceSpaceType: XRReferenceSpaceType, renderTarget: WebXRRenderTarget): Promise<WebXRSessionManager>;
|
|
|
|
|
|
+ enterXRAsync(sessionMode: XRSessionMode, referenceSpaceType: XRReferenceSpaceType, renderTarget?: WebXRRenderTarget): Promise<WebXRSessionManager>;
|
|
/**
|
|
/**
|
|
* Disposes of the experience helper
|
|
* Disposes of the experience helper
|
|
*/
|
|
*/
|
|
@@ -116492,7 +116497,7 @@ declare module BABYLON {
|
|
* Using this object it is possible to get click events and trackpad changes of the
|
|
* Using this object it is possible to get click events and trackpad changes of the
|
|
* webxr controller that is currently being used.
|
|
* webxr controller that is currently being used.
|
|
*/
|
|
*/
|
|
- gamepadController?: WebXRAbstractMotionController;
|
|
|
|
|
|
+ motionController?: WebXRAbstractMotionController;
|
|
/**
|
|
/**
|
|
* Event that fires when the controller is removed/disposed
|
|
* Event that fires when the controller is removed/disposed
|
|
*/
|
|
*/
|
|
@@ -116620,13 +116625,13 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* attach this feature
|
|
* attach this feature
|
|
*
|
|
*
|
|
- * @returns true if successful.
|
|
|
|
|
|
+ * @returns true if successful, false is failed or already attached
|
|
*/
|
|
*/
|
|
attach(): boolean;
|
|
attach(): boolean;
|
|
/**
|
|
/**
|
|
* detach this feature.
|
|
* detach this feature.
|
|
*
|
|
*
|
|
- * @returns true if successful.
|
|
|
|
|
|
+ * @returns true if successful, false if failed or already detached
|
|
*/
|
|
*/
|
|
detach(): boolean;
|
|
detach(): boolean;
|
|
/**
|
|
/**
|
|
@@ -116715,6 +116720,14 @@ declare module BABYLON {
|
|
* Default color of the laser pointer
|
|
* Default color of the laser pointer
|
|
*/
|
|
*/
|
|
lasterPointerDefaultColor: Color3;
|
|
lasterPointerDefaultColor: Color3;
|
|
|
|
+ /**
|
|
|
|
+ * Should the laser pointer be displayed
|
|
|
|
+ */
|
|
|
|
+ displayLaserPointer: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Should the selection mesh be displayed (The ring at the end of the laser pointer)
|
|
|
|
+ */
|
|
|
|
+ displaySelectionMesh: boolean;
|
|
private static _idCounter;
|
|
private static _idCounter;
|
|
private _tmpRay;
|
|
private _tmpRay;
|
|
private _controllers;
|
|
private _controllers;
|
|
@@ -131029,7 +131042,6 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
export class MorphTargetsBlock extends NodeMaterialBlock {
|
|
export class MorphTargetsBlock extends NodeMaterialBlock {
|
|
private _repeatableContentAnchor;
|
|
private _repeatableContentAnchor;
|
|
- private _repeatebleContentGenerated;
|
|
|
|
/**
|
|
/**
|
|
* Create a new MorphTargetsBlock
|
|
* Create a new MorphTargetsBlock
|
|
* @param name defines the block name
|
|
* @param name defines the block name
|
|
@@ -142057,6 +142069,11 @@ interface XRInputSource {
|
|
profiles: Array<string>;
|
|
profiles: Array<string>;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+interface XRSessionInit {
|
|
|
|
+ optionalFeatures?: XRReferenceSpaceType[];
|
|
|
|
+ requiredFeatures?: XRReferenceSpaceType[];
|
|
|
|
+}
|
|
|
|
+
|
|
interface XRSession extends XRAnchorCreator {
|
|
interface XRSession extends XRAnchorCreator {
|
|
addEventListener: Function;
|
|
addEventListener: Function;
|
|
removeEventListener: Function;
|
|
removeEventListener: Function;
|