|
@@ -44065,7 +44065,7 @@ declare module "babylonjs/Cameras/XR/webXRSessionManager" {
|
|
|
/**
|
|
|
* Checks if a session would be supported for the creation options specified
|
|
|
* @param sessionMode session mode to check if supported eg. immersive-vr
|
|
|
- * @returns true if supported
|
|
|
+ * @returns A Promise that resolves to true if supported and false if not
|
|
|
*/
|
|
|
isSessionSupportedAsync(sessionMode: XRSessionMode): Promise<boolean>;
|
|
|
/**
|
|
@@ -44106,6 +44106,11 @@ declare module "babylonjs/Cameras/XR/webXRCamera" {
|
|
|
*/
|
|
|
export class WebXRCamera extends FreeCamera {
|
|
|
private _xrSessionManager;
|
|
|
+ /**
|
|
|
+ * Should position compensation execute on first frame.
|
|
|
+ * This is used when copying the position from a native (non XR) camera
|
|
|
+ */
|
|
|
+ compensateOnFirstFrame: boolean;
|
|
|
private _firstFrame;
|
|
|
private _referencedPosition;
|
|
|
private _referenceQuaternion;
|
|
@@ -46063,6 +46068,12 @@ declare module "babylonjs/Cameras/XR/webXRDefaultExperience" {
|
|
|
* Should teleportation not initialize. defaults to false.
|
|
|
*/
|
|
|
disableTeleportation?: boolean;
|
|
|
+ /**
|
|
|
+ * If set to true, the first frame will not be used to reset position
|
|
|
+ * The first frame is mainly used when copying transformation from the old camera
|
|
|
+ * Mainly used in AR
|
|
|
+ */
|
|
|
+ ignoreNativeCameraTransformation?: boolean;
|
|
|
}
|
|
|
/**
|
|
|
* Default experience which provides a similar setup to the previous webVRExperience
|
|
@@ -46692,6 +46703,8 @@ declare module "babylonjs/Cameras/XR/features/WebXRPlaneDetector" {
|
|
|
/**
|
|
|
* A babylon interface for a webxr plane.
|
|
|
* A Plane is actually a polygon, built from N points in space
|
|
|
+ *
|
|
|
+ * Supported in chrome 79, not supported in canary 81 ATM
|
|
|
*/
|
|
|
export interface IWebXRPlane {
|
|
|
/**
|
|
@@ -46750,6 +46763,7 @@ declare module "babylonjs/Cameras/XR/features/WebXRPlaneDetector" {
|
|
|
* @param _options configuration to use when constructing this feature
|
|
|
*/
|
|
|
constructor(_xrSessionManager: WebXRSessionManager, _options?: IWebXRPlaneDetectorOptions);
|
|
|
+ private _init;
|
|
|
protected _onXRFrame(frame: XRFrame): void;
|
|
|
/**
|
|
|
* Dispose this feature and all of the resources attached
|
|
@@ -60934,6 +60948,10 @@ declare module "babylonjs/Materials/Node/Blocks/Vertex/instancesBlock" {
|
|
|
* Gets the output component
|
|
|
*/
|
|
|
get output(): NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the isntanceID component
|
|
|
+ */
|
|
|
+ get instanceID(): NodeMaterialConnectionPoint;
|
|
|
autoConfigure(material: NodeMaterial): void;
|
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
@@ -115081,7 +115099,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* Checks if a session would be supported for the creation options specified
|
|
|
* @param sessionMode session mode to check if supported eg. immersive-vr
|
|
|
- * @returns true if supported
|
|
|
+ * @returns A Promise that resolves to true if supported and false if not
|
|
|
*/
|
|
|
isSessionSupportedAsync(sessionMode: XRSessionMode): Promise<boolean>;
|
|
|
/**
|
|
@@ -115118,6 +115136,11 @@ declare module BABYLON {
|
|
|
*/
|
|
|
export class WebXRCamera extends FreeCamera {
|
|
|
private _xrSessionManager;
|
|
|
+ /**
|
|
|
+ * Should position compensation execute on first frame.
|
|
|
+ * This is used when copying the position from a native (non XR) camera
|
|
|
+ */
|
|
|
+ compensateOnFirstFrame: boolean;
|
|
|
private _firstFrame;
|
|
|
private _referencedPosition;
|
|
|
private _referenceQuaternion;
|
|
@@ -116999,6 +117022,12 @@ declare module BABYLON {
|
|
|
* Should teleportation not initialize. defaults to false.
|
|
|
*/
|
|
|
disableTeleportation?: boolean;
|
|
|
+ /**
|
|
|
+ * If set to true, the first frame will not be used to reset position
|
|
|
+ * The first frame is mainly used when copying transformation from the old camera
|
|
|
+ * Mainly used in AR
|
|
|
+ */
|
|
|
+ ignoreNativeCameraTransformation?: boolean;
|
|
|
}
|
|
|
/**
|
|
|
* Default experience which provides a similar setup to the previous webVRExperience
|
|
@@ -117589,6 +117618,8 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* A babylon interface for a webxr plane.
|
|
|
* A Plane is actually a polygon, built from N points in space
|
|
|
+ *
|
|
|
+ * Supported in chrome 79, not supported in canary 81 ATM
|
|
|
*/
|
|
|
export interface IWebXRPlane {
|
|
|
/**
|
|
@@ -117647,6 +117678,7 @@ declare module BABYLON {
|
|
|
* @param _options configuration to use when constructing this feature
|
|
|
*/
|
|
|
constructor(_xrSessionManager: WebXRSessionManager, _options?: IWebXRPlaneDetectorOptions);
|
|
|
+ private _init;
|
|
|
protected _onXRFrame(frame: XRFrame): void;
|
|
|
/**
|
|
|
* Dispose this feature and all of the resources attached
|
|
@@ -130684,6 +130716,10 @@ declare module BABYLON {
|
|
|
* Gets the output component
|
|
|
*/
|
|
|
get output(): NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the isntanceID component
|
|
|
+ */
|
|
|
+ get instanceID(): NodeMaterialConnectionPoint;
|
|
|
autoConfigure(material: NodeMaterial): void;
|
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|