|
@@ -1703,68 +1703,11 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class DebugLayer {
|
|
|
- private _scene;
|
|
|
- private _camera;
|
|
|
- private _transformationMatrix;
|
|
|
- private _enabled;
|
|
|
- private _labelsEnabled;
|
|
|
- private _displayStatistics;
|
|
|
- private _displayTree;
|
|
|
- private _displayLogs;
|
|
|
- private _globalDiv;
|
|
|
- private _statsDiv;
|
|
|
- private _statsSubsetDiv;
|
|
|
- private _optionsDiv;
|
|
|
- private _optionsSubsetDiv;
|
|
|
- private _logDiv;
|
|
|
- private _logSubsetDiv;
|
|
|
- private _treeDiv;
|
|
|
- private _treeSubsetDiv;
|
|
|
- private _drawingCanvas;
|
|
|
- private _drawingContext;
|
|
|
- private _rootElement;
|
|
|
- _syncPositions: () => void;
|
|
|
- private _syncData;
|
|
|
- private _syncUI;
|
|
|
- private _onCanvasClick;
|
|
|
- private _clickPosition;
|
|
|
- private _ratio;
|
|
|
- private _identityMatrix;
|
|
|
- private _showUI;
|
|
|
- private _needToRefreshMeshesTree;
|
|
|
- shouldDisplayLabel: (node: Node) => boolean;
|
|
|
- shouldDisplayAxis: (mesh: Mesh) => boolean;
|
|
|
- axisRatio: number;
|
|
|
- accentColor: string;
|
|
|
- customStatsFunction: () => string;
|
|
|
- constructor(scene: Scene);
|
|
|
- private _refreshMeshesTreeContent();
|
|
|
- private _renderSingleAxis(zero, unit, unitText, label, color);
|
|
|
- private _renderAxis(projectedPosition, mesh, globalViewport);
|
|
|
- private _renderLabel(text, projectedPosition, labelOffset, onClick, getFillStyle);
|
|
|
- private _isClickInsideRect(x, y, width, height);
|
|
|
- isVisible(): boolean;
|
|
|
- hide(): void;
|
|
|
- show(showUI?: boolean, camera?: Camera, rootElement?: HTMLElement): void;
|
|
|
- private _clearLabels();
|
|
|
- private _generateheader(root, text);
|
|
|
- private _generateTexBox(root, title, color);
|
|
|
- private _generateAdvancedCheckBox(root, leftTitle, rightTitle, initialState, task, tag?);
|
|
|
- private _generateCheckBox(root, title, initialState, task, tag?);
|
|
|
- private _generateButton(root, title, task, tag?);
|
|
|
- private _generateRadio(root, title, name, initialState, task, tag?);
|
|
|
- private _generateDOMelements();
|
|
|
- private _displayStats();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class ArcRotateCamera extends TargetCamera {
|
|
|
alpha: number;
|
|
|
beta: number;
|
|
|
radius: number;
|
|
|
- target: any;
|
|
|
+ target: Vector3;
|
|
|
inertialAlphaOffset: number;
|
|
|
inertialBetaOffset: number;
|
|
|
inertialRadiusOffset: number;
|
|
@@ -1822,8 +1765,7 @@ declare module BABYLON {
|
|
|
private _previousRadius;
|
|
|
private _collisionTriggered;
|
|
|
angularSensibility: number;
|
|
|
- constructor(name: string, alpha: number, beta: number, radius: number, target: any, scene: Scene);
|
|
|
- _getTargetPosition(): Vector3;
|
|
|
+ constructor(name: string, alpha: number, beta: number, radius: number, target: Vector3, scene: Scene);
|
|
|
_initCache(): void;
|
|
|
_updateCache(ignoreParentClass?: boolean): void;
|
|
|
_isSynchronizedViewMatrix(): boolean;
|
|
@@ -1848,35 +1790,12 @@ declare module BABYLON {
|
|
|
* Override Camera._updateRigCameras
|
|
|
*/
|
|
|
_updateRigCameras(): void;
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class VRCameraMetrics {
|
|
|
- hResolution: number;
|
|
|
- vResolution: number;
|
|
|
- hScreenSize: number;
|
|
|
- vScreenSize: number;
|
|
|
- vScreenCenter: number;
|
|
|
- eyeToScreenDistance: number;
|
|
|
- lensSeparationDistance: number;
|
|
|
- interpupillaryDistance: number;
|
|
|
- distortionK: number[];
|
|
|
- chromaAbCorrection: number[];
|
|
|
- postProcessScaleFactor: number;
|
|
|
- lensCenterOffset: number;
|
|
|
- compensateDistortion: boolean;
|
|
|
- aspectRatio: number;
|
|
|
- aspectRatioFov: number;
|
|
|
- leftHMatrix: Matrix;
|
|
|
- rightHMatrix: Matrix;
|
|
|
- leftPreViewMatrix: Matrix;
|
|
|
- rightPreViewMatrix: Matrix;
|
|
|
- static GetDefault(): VRCameraMetrics;
|
|
|
- }
|
|
|
class Camera extends Node {
|
|
|
- position: Vector3;
|
|
|
private static _PERSPECTIVE_CAMERA;
|
|
|
private static _ORTHOGRAPHIC_CAMERA;
|
|
|
private static _FOVMODE_VERTICAL_FIXED;
|
|
@@ -1897,6 +1816,7 @@ declare module BABYLON {
|
|
|
static RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED: number;
|
|
|
static RIG_MODE_STEREOSCOPIC_OVERUNDER: number;
|
|
|
static RIG_MODE_VR: number;
|
|
|
+ position: Vector3;
|
|
|
upVector: Vector3;
|
|
|
orthoLeft: any;
|
|
|
orthoRight: any;
|
|
@@ -1912,6 +1832,8 @@ declare module BABYLON {
|
|
|
layerMask: number;
|
|
|
fovMode: number;
|
|
|
cameraRigMode: number;
|
|
|
+ interaxialDistance: number;
|
|
|
+ isStereoscopicSideBySide: boolean;
|
|
|
_cameraRigParams: any;
|
|
|
_rigCameras: Camera[];
|
|
|
private _computedViewMatrix;
|
|
@@ -1931,7 +1853,7 @@ declare module BABYLON {
|
|
|
_isSynchronized(): boolean;
|
|
|
_isSynchronizedViewMatrix(): boolean;
|
|
|
_isSynchronizedProjectionMatrix(): boolean;
|
|
|
- attachControl(element: HTMLElement): void;
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
detachControl(element: HTMLElement): void;
|
|
|
_update(): void;
|
|
|
_checkInputs(): void;
|
|
@@ -1955,6 +1877,9 @@ declare module BABYLON {
|
|
|
*/
|
|
|
_updateRigCameras(): void;
|
|
|
serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
+ clone(name: string): Camera;
|
|
|
+ static GetConstructorFromName(type: string, name: string, scene: Scene, interaxial_distance?: number, isStereoscopicSideBySide?: boolean): () => Camera;
|
|
|
static Parse(parsedCamera: any, scene: Scene): Camera;
|
|
|
}
|
|
|
}
|
|
@@ -1975,7 +1900,7 @@ declare module BABYLON {
|
|
|
attachControl(canvas: HTMLCanvasElement, noPreventDefault: boolean): void;
|
|
|
detachControl(canvas: HTMLCanvasElement): void;
|
|
|
_checkInputs(): void;
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1987,11 +1912,11 @@ declare module BABYLON {
|
|
|
cameraAcceleration: number;
|
|
|
maxCameraSpeed: number;
|
|
|
target: AbstractMesh;
|
|
|
- constructor(name: string, position: Vector3, scene: Scene);
|
|
|
+ constructor(name: string, position: Vector3, scene: Scene, target?: AbstractMesh);
|
|
|
private getRadians(degrees);
|
|
|
private follow(cameraTarget);
|
|
|
_checkInputs(): void;
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
class ArcFollowCamera extends TargetCamera {
|
|
|
alpha: number;
|
|
@@ -2002,7 +1927,7 @@ declare module BABYLON {
|
|
|
constructor(name: string, alpha: number, beta: number, radius: number, target: AbstractMesh, scene: Scene);
|
|
|
private follow();
|
|
|
_checkInputs(): void;
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2032,7 +1957,6 @@ declare module BABYLON {
|
|
|
private _onMouseMove;
|
|
|
private _onKeyDown;
|
|
|
private _onKeyUp;
|
|
|
- _waitingLockedTargetId: string;
|
|
|
constructor(name: string, position: Vector3, scene: Scene);
|
|
|
_onLostFocus(e: FocusEvent): void;
|
|
|
attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
@@ -2042,42 +1966,49 @@ declare module BABYLON {
|
|
|
_checkInputs(): void;
|
|
|
_decideIfNeedsToMove(): boolean;
|
|
|
_updatePosition(): void;
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
class GamepadCamera extends UniversalCamera {
|
|
|
constructor(name: string, position: Vector3, scene: Scene);
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
class AnaglyphFreeCamera extends FreeCamera {
|
|
|
- interaxialDistance: number;
|
|
|
constructor(name: string, position: Vector3, interaxialDistance: number, scene: Scene);
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
class AnaglyphArcRotateCamera extends ArcRotateCamera {
|
|
|
constructor(name: string, alpha: number, beta: number, radius: number, target: any, interaxialDistance: number, scene: Scene);
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
class AnaglyphGamepadCamera extends GamepadCamera {
|
|
|
constructor(name: string, position: Vector3, interaxialDistance: number, scene: Scene);
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
+ }
|
|
|
+ class AnaglyphUniversalCamera extends UniversalCamera {
|
|
|
+ constructor(name: string, position: Vector3, interaxialDistance: number, scene: Scene);
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
class StereoscopicFreeCamera extends FreeCamera {
|
|
|
- constructor(name: string, position: Vector3, interaxialDistance: number, isSideBySide: boolean, scene: Scene);
|
|
|
- serialize(): any;
|
|
|
+ constructor(name: string, position: Vector3, interaxialDistance: number, isStereoscopicSideBySide: boolean, scene: Scene);
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
class StereoscopicArcRotateCamera extends ArcRotateCamera {
|
|
|
- constructor(name: string, alpha: number, beta: number, radius: number, target: any, interaxialDistance: number, isSideBySide: boolean, scene: Scene);
|
|
|
- serialize(): any;
|
|
|
+ constructor(name: string, alpha: number, beta: number, radius: number, target: any, interaxialDistance: number, isStereoscopicSideBySide: boolean, scene: Scene);
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
class StereoscopicGamepadCamera extends GamepadCamera {
|
|
|
- constructor(name: string, position: Vector3, interaxialDistance: number, isSideBySide: boolean, scene: Scene);
|
|
|
- serialize(): any;
|
|
|
+ constructor(name: string, position: Vector3, interaxialDistance: number, isStereoscopicSideBySide: boolean, scene: Scene);
|
|
|
+ getTypeName(): string;
|
|
|
+ }
|
|
|
+ class StereoscopicUniversalCamera extends UniversalCamera {
|
|
|
+ constructor(name: string, position: Vector3, interaxialDistance: number, isStereoscopicSideBySide: boolean, scene: Scene);
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2100,7 +2031,6 @@ declare module BABYLON {
|
|
|
_lookAtTemp: Matrix;
|
|
|
_tempMatrix: Matrix;
|
|
|
_reset: () => void;
|
|
|
- _waitingLockedTargetId: string;
|
|
|
constructor(name: string, position: Vector3, scene: Scene);
|
|
|
getFrontPosition(distance: number): Vector3;
|
|
|
_getLockedTargetPosition(): Vector3;
|
|
@@ -2126,7 +2056,7 @@ declare module BABYLON {
|
|
|
*/
|
|
|
_updateRigCameras(): void;
|
|
|
private _getRigCamPosition(halfSpace, result);
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2147,7 +2077,7 @@ declare module BABYLON {
|
|
|
attachControl(canvas: HTMLCanvasElement, noPreventDefault: boolean): void;
|
|
|
detachControl(canvas: HTMLCanvasElement): void;
|
|
|
_checkInputs(): void;
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2163,7 +2093,7 @@ declare module BABYLON {
|
|
|
detachControl(canvas: HTMLCanvasElement): void;
|
|
|
_checkInputs(): void;
|
|
|
dispose(): void;
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2176,92 +2106,7 @@ declare module BABYLON {
|
|
|
getRightJoystick(): VirtualJoystick;
|
|
|
_checkInputs(): void;
|
|
|
dispose(): void;
|
|
|
- serialize(): any;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class BoundingBox {
|
|
|
- minimum: Vector3;
|
|
|
- maximum: Vector3;
|
|
|
- vectors: Vector3[];
|
|
|
- center: Vector3;
|
|
|
- extendSize: Vector3;
|
|
|
- directions: Vector3[];
|
|
|
- vectorsWorld: Vector3[];
|
|
|
- minimumWorld: Vector3;
|
|
|
- maximumWorld: Vector3;
|
|
|
- private _worldMatrix;
|
|
|
- constructor(minimum: Vector3, maximum: Vector3);
|
|
|
- getWorldMatrix(): Matrix;
|
|
|
- setWorldMatrix(matrix: Matrix): BoundingBox;
|
|
|
- _update(world: Matrix): void;
|
|
|
- isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
- isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
- intersectsPoint(point: Vector3): boolean;
|
|
|
- intersectsSphere(sphere: BoundingSphere): boolean;
|
|
|
- intersectsMinMax(min: Vector3, max: Vector3): boolean;
|
|
|
- static Intersects(box0: BoundingBox, box1: BoundingBox): boolean;
|
|
|
- static IntersectsSphere(minPoint: Vector3, maxPoint: Vector3, sphereCenter: Vector3, sphereRadius: number): boolean;
|
|
|
- static IsCompletelyInFrustum(boundingVectors: Vector3[], frustumPlanes: Plane[]): boolean;
|
|
|
- static IsInFrustum(boundingVectors: Vector3[], frustumPlanes: Plane[]): boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class BoundingInfo {
|
|
|
- minimum: Vector3;
|
|
|
- maximum: Vector3;
|
|
|
- boundingBox: BoundingBox;
|
|
|
- boundingSphere: BoundingSphere;
|
|
|
- private _isLocked;
|
|
|
- constructor(minimum: Vector3, maximum: Vector3);
|
|
|
- isLocked: boolean;
|
|
|
- update(world: Matrix): void;
|
|
|
- isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
- isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
- _checkCollision(collider: Collider): boolean;
|
|
|
- intersectsPoint(point: Vector3): boolean;
|
|
|
- intersects(boundingInfo: BoundingInfo, precise: boolean): boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class BoundingSphere {
|
|
|
- minimum: Vector3;
|
|
|
- maximum: Vector3;
|
|
|
- center: Vector3;
|
|
|
- radius: number;
|
|
|
- centerWorld: Vector3;
|
|
|
- radiusWorld: number;
|
|
|
- private _tempRadiusVector;
|
|
|
- constructor(minimum: Vector3, maximum: Vector3);
|
|
|
- _update(world: Matrix): void;
|
|
|
- isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
- intersectsPoint(point: Vector3): boolean;
|
|
|
- static Intersects(sphere0: BoundingSphere, sphere1: BoundingSphere): boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class Layer {
|
|
|
- name: string;
|
|
|
- texture: Texture;
|
|
|
- isBackground: boolean;
|
|
|
- color: Color4;
|
|
|
- scale: Vector2;
|
|
|
- offset: Vector2;
|
|
|
- onDispose: () => void;
|
|
|
- alphaBlendingMode: number;
|
|
|
- private _scene;
|
|
|
- private _vertexDeclaration;
|
|
|
- private _vertexStrideSize;
|
|
|
- private _vertexBuffer;
|
|
|
- private _indexBuffer;
|
|
|
- private _effect;
|
|
|
- constructor(name: string, imgUrl: string, scene: Scene, isBackground?: boolean, color?: Color4);
|
|
|
- render(): void;
|
|
|
- dispose(): void;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2507,46 +2352,144 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class LensFlare {
|
|
|
- size: number;
|
|
|
- position: number;
|
|
|
- color: Color3;
|
|
|
- texture: Texture;
|
|
|
- private _system;
|
|
|
- constructor(size: number, position: number, color: any, imgUrl: string, system: LensFlareSystem);
|
|
|
- dispose: () => void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class LensFlareSystem {
|
|
|
+ class Layer {
|
|
|
name: string;
|
|
|
- lensFlares: LensFlare[];
|
|
|
- borderLimit: number;
|
|
|
- meshesSelectionPredicate: (mesh: Mesh) => boolean;
|
|
|
- layerMask: number;
|
|
|
+ texture: Texture;
|
|
|
+ isBackground: boolean;
|
|
|
+ color: Color4;
|
|
|
+ scale: Vector2;
|
|
|
+ offset: Vector2;
|
|
|
+ onDispose: () => void;
|
|
|
+ alphaBlendingMode: number;
|
|
|
private _scene;
|
|
|
- private _emitter;
|
|
|
private _vertexDeclaration;
|
|
|
private _vertexStrideSize;
|
|
|
private _vertexBuffer;
|
|
|
private _indexBuffer;
|
|
|
private _effect;
|
|
|
- private _positionX;
|
|
|
- private _positionY;
|
|
|
- private _isEnabled;
|
|
|
- constructor(name: string, emitter: any, scene: Scene);
|
|
|
- isEnabled: boolean;
|
|
|
- getScene(): Scene;
|
|
|
- getEmitter(): any;
|
|
|
- setEmitter(newEmitter: any): void;
|
|
|
- getEmitterPosition(): Vector3;
|
|
|
- computeEffectivePosition(globalViewport: Viewport): boolean;
|
|
|
- _isVisible(): boolean;
|
|
|
- render(): boolean;
|
|
|
+ constructor(name: string, imgUrl: string, scene: Scene, isBackground?: boolean, color?: Color4);
|
|
|
+ render(): void;
|
|
|
dispose(): void;
|
|
|
- static Parse(parsedLensFlareSystem: any, scene: Scene, rootUrl: string): LensFlareSystem;
|
|
|
- serialize(): any;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class DebugLayer {
|
|
|
+ private _scene;
|
|
|
+ private _camera;
|
|
|
+ private _transformationMatrix;
|
|
|
+ private _enabled;
|
|
|
+ private _labelsEnabled;
|
|
|
+ private _displayStatistics;
|
|
|
+ private _displayTree;
|
|
|
+ private _displayLogs;
|
|
|
+ private _globalDiv;
|
|
|
+ private _statsDiv;
|
|
|
+ private _statsSubsetDiv;
|
|
|
+ private _optionsDiv;
|
|
|
+ private _optionsSubsetDiv;
|
|
|
+ private _logDiv;
|
|
|
+ private _logSubsetDiv;
|
|
|
+ private _treeDiv;
|
|
|
+ private _treeSubsetDiv;
|
|
|
+ private _drawingCanvas;
|
|
|
+ private _drawingContext;
|
|
|
+ private _rootElement;
|
|
|
+ _syncPositions: () => void;
|
|
|
+ private _syncData;
|
|
|
+ private _syncUI;
|
|
|
+ private _onCanvasClick;
|
|
|
+ private _clickPosition;
|
|
|
+ private _ratio;
|
|
|
+ private _identityMatrix;
|
|
|
+ private _showUI;
|
|
|
+ private _needToRefreshMeshesTree;
|
|
|
+ shouldDisplayLabel: (node: Node) => boolean;
|
|
|
+ shouldDisplayAxis: (mesh: Mesh) => boolean;
|
|
|
+ axisRatio: number;
|
|
|
+ accentColor: string;
|
|
|
+ customStatsFunction: () => string;
|
|
|
+ constructor(scene: Scene);
|
|
|
+ private _refreshMeshesTreeContent();
|
|
|
+ private _renderSingleAxis(zero, unit, unitText, label, color);
|
|
|
+ private _renderAxis(projectedPosition, mesh, globalViewport);
|
|
|
+ private _renderLabel(text, projectedPosition, labelOffset, onClick, getFillStyle);
|
|
|
+ private _isClickInsideRect(x, y, width, height);
|
|
|
+ isVisible(): boolean;
|
|
|
+ hide(): void;
|
|
|
+ show(showUI?: boolean, camera?: Camera, rootElement?: HTMLElement): void;
|
|
|
+ private _clearLabels();
|
|
|
+ private _generateheader(root, text);
|
|
|
+ private _generateTexBox(root, title, color);
|
|
|
+ private _generateAdvancedCheckBox(root, leftTitle, rightTitle, initialState, task, tag?);
|
|
|
+ private _generateCheckBox(root, title, initialState, task, tag?);
|
|
|
+ private _generateButton(root, title, task, tag?);
|
|
|
+ private _generateRadio(root, title, name, initialState, task, tag?);
|
|
|
+ private _generateDOMelements();
|
|
|
+ private _displayStats();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class BoundingBox {
|
|
|
+ minimum: Vector3;
|
|
|
+ maximum: Vector3;
|
|
|
+ vectors: Vector3[];
|
|
|
+ center: Vector3;
|
|
|
+ extendSize: Vector3;
|
|
|
+ directions: Vector3[];
|
|
|
+ vectorsWorld: Vector3[];
|
|
|
+ minimumWorld: Vector3;
|
|
|
+ maximumWorld: Vector3;
|
|
|
+ private _worldMatrix;
|
|
|
+ constructor(minimum: Vector3, maximum: Vector3);
|
|
|
+ getWorldMatrix(): Matrix;
|
|
|
+ setWorldMatrix(matrix: Matrix): BoundingBox;
|
|
|
+ _update(world: Matrix): void;
|
|
|
+ isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
+ isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
+ intersectsPoint(point: Vector3): boolean;
|
|
|
+ intersectsSphere(sphere: BoundingSphere): boolean;
|
|
|
+ intersectsMinMax(min: Vector3, max: Vector3): boolean;
|
|
|
+ static Intersects(box0: BoundingBox, box1: BoundingBox): boolean;
|
|
|
+ static IntersectsSphere(minPoint: Vector3, maxPoint: Vector3, sphereCenter: Vector3, sphereRadius: number): boolean;
|
|
|
+ static IsCompletelyInFrustum(boundingVectors: Vector3[], frustumPlanes: Plane[]): boolean;
|
|
|
+ static IsInFrustum(boundingVectors: Vector3[], frustumPlanes: Plane[]): boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class BoundingInfo {
|
|
|
+ minimum: Vector3;
|
|
|
+ maximum: Vector3;
|
|
|
+ boundingBox: BoundingBox;
|
|
|
+ boundingSphere: BoundingSphere;
|
|
|
+ private _isLocked;
|
|
|
+ constructor(minimum: Vector3, maximum: Vector3);
|
|
|
+ isLocked: boolean;
|
|
|
+ update(world: Matrix): void;
|
|
|
+ isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
+ isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
+ _checkCollision(collider: Collider): boolean;
|
|
|
+ intersectsPoint(point: Vector3): boolean;
|
|
|
+ intersects(boundingInfo: BoundingInfo, precise: boolean): boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class BoundingSphere {
|
|
|
+ minimum: Vector3;
|
|
|
+ maximum: Vector3;
|
|
|
+ center: Vector3;
|
|
|
+ radius: number;
|
|
|
+ centerWorld: Vector3;
|
|
|
+ radiusWorld: number;
|
|
|
+ private _tempRadiusVector;
|
|
|
+ constructor(minimum: Vector3, maximum: Vector3);
|
|
|
+ _update(world: Matrix): void;
|
|
|
+ isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
+ intersectsPoint(point: Vector3): boolean;
|
|
|
+ static Intersects(sphere0: BoundingSphere, sphere1: BoundingSphere): boolean;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2678,6 +2621,50 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class LensFlare {
|
|
|
+ size: number;
|
|
|
+ position: number;
|
|
|
+ color: Color3;
|
|
|
+ texture: Texture;
|
|
|
+ private _system;
|
|
|
+ constructor(size: number, position: number, color: any, imgUrl: string, system: LensFlareSystem);
|
|
|
+ dispose: () => void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class LensFlareSystem {
|
|
|
+ name: string;
|
|
|
+ lensFlares: LensFlare[];
|
|
|
+ borderLimit: number;
|
|
|
+ meshesSelectionPredicate: (mesh: Mesh) => boolean;
|
|
|
+ layerMask: number;
|
|
|
+ private _scene;
|
|
|
+ private _emitter;
|
|
|
+ private _vertexDeclaration;
|
|
|
+ private _vertexStrideSize;
|
|
|
+ private _vertexBuffer;
|
|
|
+ private _indexBuffer;
|
|
|
+ private _effect;
|
|
|
+ private _positionX;
|
|
|
+ private _positionY;
|
|
|
+ private _isEnabled;
|
|
|
+ constructor(name: string, emitter: any, scene: Scene);
|
|
|
+ isEnabled: boolean;
|
|
|
+ getScene(): Scene;
|
|
|
+ getEmitter(): any;
|
|
|
+ setEmitter(newEmitter: any): void;
|
|
|
+ getEmitterPosition(): Vector3;
|
|
|
+ computeEffectivePosition(globalViewport: Viewport): boolean;
|
|
|
+ _isVisible(): boolean;
|
|
|
+ render(): boolean;
|
|
|
+ dispose(): void;
|
|
|
+ static Parse(parsedLensFlareSystem: any, scene: Scene, rootUrl: string): LensFlareSystem;
|
|
|
+ serialize(): any;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
interface ISceneLoaderPlugin {
|
|
|
extensions: string;
|
|
|
importMesh: (meshesNames: any, scene: Scene, data: any, rootUrl: string, meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => boolean;
|
|
@@ -3563,6 +3550,7 @@ declare module BABYLON {
|
|
|
dispose(forceDisposeEffect?: boolean): void;
|
|
|
clone(name: string): StandardMaterial;
|
|
|
serialize(): any;
|
|
|
+ static Parse(source: any, scene: Scene, rootUrl: string): StandardMaterial;
|
|
|
static DiffuseTextureEnabled: boolean;
|
|
|
static AmbientTextureEnabled: boolean;
|
|
|
static OpacityTextureEnabled: boolean;
|
|
@@ -3573,7 +3561,6 @@ declare module BABYLON {
|
|
|
static FresnelEnabled: boolean;
|
|
|
static LightmapTextureEnabled: boolean;
|
|
|
static RefractionTextureEnabled: boolean;
|
|
|
- static Parse(source: any, scene: Scene, rootUrl: string): StandardMaterial;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -4859,9 +4846,6 @@ declare module BABYLON {
|
|
|
static CreateLineSystem(options: {
|
|
|
lines: Vector3[][];
|
|
|
}): VertexData;
|
|
|
- static CreateLines(options: {
|
|
|
- points: Vector3[];
|
|
|
- }): VertexData;
|
|
|
static CreateDashedLines(options: {
|
|
|
points: Vector3[];
|
|
|
dashSize?: number;
|
|
@@ -6285,9 +6269,11 @@ declare module BABYLON {
|
|
|
function serializeAsTexture(sourceName?: string): (target: any, propertyKey: string | symbol) => void;
|
|
|
function serializeAsColor3(sourceName?: string): (target: any, propertyKey: string | symbol) => void;
|
|
|
function serializeAsFresnelParameters(sourceName?: string): (target: any, propertyKey: string | symbol) => void;
|
|
|
+ function serializeAsVector3(sourceName?: string): (target: any, propertyKey: string | symbol) => void;
|
|
|
+ function serializeAsMeshReference(sourceName?: string): (target: any, propertyKey: string | symbol) => void;
|
|
|
class SerializationHelper {
|
|
|
static Serialize<T>(entity: T, serializationObject?: any): any;
|
|
|
- static Parse<T>(creationFunction: () => T, source: any, scene: Scene, rootUrl: string): T;
|
|
|
+ static Parse<T>(creationFunction: () => T, source: any, scene: Scene, rootUrl?: string): T;
|
|
|
static Clone<T>(creationFunction: () => T, source: T): T;
|
|
|
}
|
|
|
}
|
|
@@ -6832,6 +6818,31 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class VRCameraMetrics {
|
|
|
+ hResolution: number;
|
|
|
+ vResolution: number;
|
|
|
+ hScreenSize: number;
|
|
|
+ vScreenSize: number;
|
|
|
+ vScreenCenter: number;
|
|
|
+ eyeToScreenDistance: number;
|
|
|
+ lensSeparationDistance: number;
|
|
|
+ interpupillaryDistance: number;
|
|
|
+ distortionK: number[];
|
|
|
+ chromaAbCorrection: number[];
|
|
|
+ postProcessScaleFactor: number;
|
|
|
+ lensCenterOffset: number;
|
|
|
+ compensateDistortion: boolean;
|
|
|
+ aspectRatio: number;
|
|
|
+ aspectRatioFov: number;
|
|
|
+ leftHMatrix: Matrix;
|
|
|
+ rightHMatrix: Matrix;
|
|
|
+ leftPreViewMatrix: Matrix;
|
|
|
+ rightPreViewMatrix: Matrix;
|
|
|
+ static GetDefault(): VRCameraMetrics;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
class VRDeviceOrientationFreeCamera extends FreeCamera {
|
|
|
_alpha: number;
|
|
|
_beta: number;
|
|
@@ -6842,7 +6853,7 @@ declare module BABYLON {
|
|
|
_onOrientationEvent(evt: DeviceOrientationEvent): void;
|
|
|
attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
detachControl(element: HTMLElement): void;
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -6861,7 +6872,7 @@ declare module BABYLON {
|
|
|
_checkInputs(): void;
|
|
|
attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
detachControl(element: HTMLElement): void;
|
|
|
- serialize(): any;
|
|
|
+ getTypeName(): string;
|
|
|
}
|
|
|
}
|
|
|
|