|
@@ -49949,6 +49949,74 @@ declare module "babylonjs/Helpers/sceneHelpers" {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+declare module "babylonjs/Maths/math.vertexFormat" {
|
|
|
+ import { Vector3, Vector2 } from "babylonjs/Maths/math.vector";
|
|
|
+ /**
|
|
|
+ * Contains position and normal vectors for a vertex
|
|
|
+ */
|
|
|
+ export class PositionNormalVertex {
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
+ position: Vector3;
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
+ normal: Vector3;
|
|
|
+ /**
|
|
|
+ * Creates a PositionNormalVertex
|
|
|
+ * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
+ * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
+ */
|
|
|
+ constructor(
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
+ position?: Vector3,
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
+ normal?: Vector3);
|
|
|
+ /**
|
|
|
+ * Clones the PositionNormalVertex
|
|
|
+ * @returns the cloned PositionNormalVertex
|
|
|
+ */
|
|
|
+ clone(): PositionNormalVertex;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Contains position, normal and uv vectors for a vertex
|
|
|
+ */
|
|
|
+ export class PositionNormalTextureVertex {
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
+ position: Vector3;
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
+ normal: Vector3;
|
|
|
+ /** the uv of the vertex (default: 0,0) */
|
|
|
+ uv: Vector2;
|
|
|
+ /**
|
|
|
+ * Creates a PositionNormalTextureVertex
|
|
|
+ * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
+ * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
+ * @param uv the uv of the vertex (default: 0,0)
|
|
|
+ */
|
|
|
+ constructor(
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
+ position?: Vector3,
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
+ normal?: Vector3,
|
|
|
+ /** the uv of the vertex (default: 0,0) */
|
|
|
+ uv?: Vector2);
|
|
|
+ /**
|
|
|
+ * Clones the PositionNormalTextureVertex
|
|
|
+ * @returns the cloned PositionNormalTextureVertex
|
|
|
+ */
|
|
|
+ clone(): PositionNormalTextureVertex;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module "babylonjs/Maths/math" {
|
|
|
+ export * from "babylonjs/Maths/math.axis";
|
|
|
+ export * from "babylonjs/Maths/math.color";
|
|
|
+ export * from "babylonjs/Maths/math.constants";
|
|
|
+ export * from "babylonjs/Maths/math.frustum";
|
|
|
+ export * from "babylonjs/Maths/math.path";
|
|
|
+ export * from "babylonjs/Maths/math.plane";
|
|
|
+ export * from "babylonjs/Maths/math.size";
|
|
|
+ export * from "babylonjs/Maths/math.vector";
|
|
|
+ export * from "babylonjs/Maths/math.vertexFormat";
|
|
|
+ export * from "babylonjs/Maths/math.viewport";
|
|
|
+}
|
|
|
declare module "babylonjs/Helpers/videoDome" {
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
import { TransformNode } from "babylonjs/Meshes/transformNode";
|
|
@@ -49957,7 +50025,7 @@ declare module "babylonjs/Helpers/videoDome" {
|
|
|
import { BackgroundMaterial } from "babylonjs/Materials/Background/backgroundMaterial";
|
|
|
import "babylonjs/Meshes/Builders/sphereBuilder";
|
|
|
/**
|
|
|
- * Display a 360 degree video on an approximately spherical surface, useful for VR applications or skyboxes.
|
|
|
+ * Display a 360/180 degree video on an approximately spherical surface, useful for VR applications or skyboxes.
|
|
|
* As a subclass of TransformNode, this allow parenting to the camera or multiple videos with different locations in the scene.
|
|
|
* This class achieves its effect with a VideoTexture and a correctly configured BackgroundMaterial on an inverted sphere.
|
|
|
* Potential additions to this helper include zoom and and non-infinite distance rendering effects.
|
|
@@ -49975,6 +50043,7 @@ declare module "babylonjs/Helpers/videoDome" {
|
|
|
* Define the video source as a Stereoscopic Side by Side panoramic 360 video.
|
|
|
*/
|
|
|
static readonly MODE_SIDEBYSIDE: number;
|
|
|
+ private _halfDome;
|
|
|
private _useDirectMapping;
|
|
|
/**
|
|
|
* The video texture being displayed on the sphere
|
|
@@ -49993,6 +50062,10 @@ declare module "babylonjs/Helpers/videoDome" {
|
|
|
*/
|
|
|
protected _mesh: Mesh;
|
|
|
/**
|
|
|
+ * A mesh that will be used to mask the back of the video dome in case it is a 180 degree movie.
|
|
|
+ */
|
|
|
+ private _halfDomeMask;
|
|
|
+ /**
|
|
|
* The current fov(field of view) multiplier, 0.0 - 2.0. Defaults to 1.0. Lower values "zoom in" and higher values "zoom out".
|
|
|
* Also see the options.resolution property.
|
|
|
*/
|
|
@@ -50006,6 +50079,14 @@ declare module "babylonjs/Helpers/videoDome" {
|
|
|
*/
|
|
|
videoMode: number;
|
|
|
/**
|
|
|
+ * Is the video a 180 degrees video (half dome) or 360 video (full dome)
|
|
|
+ *
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Set the halfDome mode. If set, only the front (180 degrees) will be displayed and the back will be blacked out.
|
|
|
+ */
|
|
|
+ halfDome: boolean;
|
|
|
+ /**
|
|
|
* Oberserver used in Stereoscopic VR Mode.
|
|
|
*/
|
|
|
private _onBeforeCameraRenderObserver;
|
|
@@ -50024,6 +50105,7 @@ declare module "babylonjs/Helpers/videoDome" {
|
|
|
poster?: string;
|
|
|
faceForward?: boolean;
|
|
|
useDirectMapping?: boolean;
|
|
|
+ halfDomeMode?: boolean;
|
|
|
}, scene: Scene);
|
|
|
private _changeVideoMode;
|
|
|
/**
|
|
@@ -54750,74 +54832,6 @@ declare module "babylonjs/Materials/Node/nodeMaterialWellKnownValues" {
|
|
|
FogColor = 8
|
|
|
}
|
|
|
}
|
|
|
-declare module "babylonjs/Maths/math.vertexFormat" {
|
|
|
- import { Vector3, Vector2 } from "babylonjs/Maths/math.vector";
|
|
|
- /**
|
|
|
- * Contains position and normal vectors for a vertex
|
|
|
- */
|
|
|
- export class PositionNormalVertex {
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
- position: Vector3;
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
- normal: Vector3;
|
|
|
- /**
|
|
|
- * Creates a PositionNormalVertex
|
|
|
- * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
- * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
- */
|
|
|
- constructor(
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
- position?: Vector3,
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
- normal?: Vector3);
|
|
|
- /**
|
|
|
- * Clones the PositionNormalVertex
|
|
|
- * @returns the cloned PositionNormalVertex
|
|
|
- */
|
|
|
- clone(): PositionNormalVertex;
|
|
|
- }
|
|
|
- /**
|
|
|
- * Contains position, normal and uv vectors for a vertex
|
|
|
- */
|
|
|
- export class PositionNormalTextureVertex {
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
- position: Vector3;
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
- normal: Vector3;
|
|
|
- /** the uv of the vertex (default: 0,0) */
|
|
|
- uv: Vector2;
|
|
|
- /**
|
|
|
- * Creates a PositionNormalTextureVertex
|
|
|
- * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
- * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
- * @param uv the uv of the vertex (default: 0,0)
|
|
|
- */
|
|
|
- constructor(
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
- position?: Vector3,
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
- normal?: Vector3,
|
|
|
- /** the uv of the vertex (default: 0,0) */
|
|
|
- uv?: Vector2);
|
|
|
- /**
|
|
|
- * Clones the PositionNormalTextureVertex
|
|
|
- * @returns the cloned PositionNormalTextureVertex
|
|
|
- */
|
|
|
- clone(): PositionNormalTextureVertex;
|
|
|
- }
|
|
|
-}
|
|
|
-declare module "babylonjs/Maths/math" {
|
|
|
- export * from "babylonjs/Maths/math.axis";
|
|
|
- export * from "babylonjs/Maths/math.color";
|
|
|
- export * from "babylonjs/Maths/math.constants";
|
|
|
- export * from "babylonjs/Maths/math.frustum";
|
|
|
- export * from "babylonjs/Maths/math.path";
|
|
|
- export * from "babylonjs/Maths/math.plane";
|
|
|
- export * from "babylonjs/Maths/math.size";
|
|
|
- export * from "babylonjs/Maths/math.vector";
|
|
|
- export * from "babylonjs/Maths/math.vertexFormat";
|
|
|
- export * from "babylonjs/Maths/math.viewport";
|
|
|
-}
|
|
|
declare module "babylonjs/Materials/Node/Blocks/Input/inputBlock" {
|
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
|
import { NodeMaterialBlockConnectionPointTypes } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes";
|
|
@@ -112121,7 +112135,62 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
- * Display a 360 degree video on an approximately spherical surface, useful for VR applications or skyboxes.
|
|
|
+ * Contains position and normal vectors for a vertex
|
|
|
+ */
|
|
|
+ export class PositionNormalVertex {
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
+ position: Vector3;
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
+ normal: Vector3;
|
|
|
+ /**
|
|
|
+ * Creates a PositionNormalVertex
|
|
|
+ * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
+ * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
+ */
|
|
|
+ constructor(
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
+ position?: Vector3,
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
+ normal?: Vector3);
|
|
|
+ /**
|
|
|
+ * Clones the PositionNormalVertex
|
|
|
+ * @returns the cloned PositionNormalVertex
|
|
|
+ */
|
|
|
+ clone(): PositionNormalVertex;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Contains position, normal and uv vectors for a vertex
|
|
|
+ */
|
|
|
+ export class PositionNormalTextureVertex {
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
+ position: Vector3;
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
+ normal: Vector3;
|
|
|
+ /** the uv of the vertex (default: 0,0) */
|
|
|
+ uv: Vector2;
|
|
|
+ /**
|
|
|
+ * Creates a PositionNormalTextureVertex
|
|
|
+ * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
+ * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
+ * @param uv the uv of the vertex (default: 0,0)
|
|
|
+ */
|
|
|
+ constructor(
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
+ position?: Vector3,
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
+ normal?: Vector3,
|
|
|
+ /** the uv of the vertex (default: 0,0) */
|
|
|
+ uv?: Vector2);
|
|
|
+ /**
|
|
|
+ * Clones the PositionNormalTextureVertex
|
|
|
+ * @returns the cloned PositionNormalTextureVertex
|
|
|
+ */
|
|
|
+ clone(): PositionNormalTextureVertex;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
+ /**
|
|
|
+ * Display a 360/180 degree video on an approximately spherical surface, useful for VR applications or skyboxes.
|
|
|
* As a subclass of TransformNode, this allow parenting to the camera or multiple videos with different locations in the scene.
|
|
|
* This class achieves its effect with a VideoTexture and a correctly configured BackgroundMaterial on an inverted sphere.
|
|
|
* Potential additions to this helper include zoom and and non-infinite distance rendering effects.
|
|
@@ -112139,6 +112208,7 @@ declare module BABYLON {
|
|
|
* Define the video source as a Stereoscopic Side by Side panoramic 360 video.
|
|
|
*/
|
|
|
static readonly MODE_SIDEBYSIDE: number;
|
|
|
+ private _halfDome;
|
|
|
private _useDirectMapping;
|
|
|
/**
|
|
|
* The video texture being displayed on the sphere
|
|
@@ -112157,6 +112227,10 @@ declare module BABYLON {
|
|
|
*/
|
|
|
protected _mesh: Mesh;
|
|
|
/**
|
|
|
+ * A mesh that will be used to mask the back of the video dome in case it is a 180 degree movie.
|
|
|
+ */
|
|
|
+ private _halfDomeMask;
|
|
|
+ /**
|
|
|
* The current fov(field of view) multiplier, 0.0 - 2.0. Defaults to 1.0. Lower values "zoom in" and higher values "zoom out".
|
|
|
* Also see the options.resolution property.
|
|
|
*/
|
|
@@ -112170,6 +112244,14 @@ declare module BABYLON {
|
|
|
*/
|
|
|
videoMode: number;
|
|
|
/**
|
|
|
+ * Is the video a 180 degrees video (half dome) or 360 video (full dome)
|
|
|
+ *
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Set the halfDome mode. If set, only the front (180 degrees) will be displayed and the back will be blacked out.
|
|
|
+ */
|
|
|
+ halfDome: boolean;
|
|
|
+ /**
|
|
|
* Oberserver used in Stereoscopic VR Mode.
|
|
|
*/
|
|
|
private _onBeforeCameraRenderObserver;
|
|
@@ -112188,6 +112270,7 @@ declare module BABYLON {
|
|
|
poster?: string;
|
|
|
faceForward?: boolean;
|
|
|
useDirectMapping?: boolean;
|
|
|
+ halfDomeMode?: boolean;
|
|
|
}, scene: Scene);
|
|
|
private _changeVideoMode;
|
|
|
/**
|
|
@@ -116564,61 +116647,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
- * Contains position and normal vectors for a vertex
|
|
|
- */
|
|
|
- export class PositionNormalVertex {
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
- position: Vector3;
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
- normal: Vector3;
|
|
|
- /**
|
|
|
- * Creates a PositionNormalVertex
|
|
|
- * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
- * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
- */
|
|
|
- constructor(
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
- position?: Vector3,
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
- normal?: Vector3);
|
|
|
- /**
|
|
|
- * Clones the PositionNormalVertex
|
|
|
- * @returns the cloned PositionNormalVertex
|
|
|
- */
|
|
|
- clone(): PositionNormalVertex;
|
|
|
- }
|
|
|
- /**
|
|
|
- * Contains position, normal and uv vectors for a vertex
|
|
|
- */
|
|
|
- export class PositionNormalTextureVertex {
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
- position: Vector3;
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
- normal: Vector3;
|
|
|
- /** the uv of the vertex (default: 0,0) */
|
|
|
- uv: Vector2;
|
|
|
- /**
|
|
|
- * Creates a PositionNormalTextureVertex
|
|
|
- * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
- * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
- * @param uv the uv of the vertex (default: 0,0)
|
|
|
- */
|
|
|
- constructor(
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
- position?: Vector3,
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
- normal?: Vector3,
|
|
|
- /** the uv of the vertex (default: 0,0) */
|
|
|
- uv?: Vector2);
|
|
|
- /**
|
|
|
- * Clones the PositionNormalTextureVertex
|
|
|
- * @returns the cloned PositionNormalTextureVertex
|
|
|
- */
|
|
|
- clone(): PositionNormalTextureVertex;
|
|
|
- }
|
|
|
-}
|
|
|
-declare module BABYLON {
|
|
|
- /**
|
|
|
* Block used to expose an input value
|
|
|
*/
|
|
|
export class InputBlock extends NodeMaterialBlock {
|