|
@@ -109,6 +109,7 @@ declare module BABYLON {
|
|
|
private _glVersion;
|
|
|
private _glRenderer;
|
|
|
private _glVendor;
|
|
|
+ private _videoTextureSupported;
|
|
|
private _renderingQueueLaunched;
|
|
|
private _activeRenderLoops;
|
|
|
private fpsRange;
|
|
@@ -128,7 +129,6 @@ declare module BABYLON {
|
|
|
private _cachedIndexBuffer;
|
|
|
private _cachedEffectForVertexBuffers;
|
|
|
private _currentRenderTarget;
|
|
|
- private _canvasClientRect;
|
|
|
private _uintIndicesCurrentlySet;
|
|
|
private _workingCanvas;
|
|
|
private _workingContext;
|
|
@@ -258,7 +258,7 @@ declare module BABYLON {
|
|
|
setSamplingMode(texture: WebGLTexture, samplingMode: number): void;
|
|
|
createTexture(url: string, noMipmap: boolean, invertY: boolean, scene: Scene, samplingMode?: number, onLoad?: () => void, onError?: () => void, buffer?: any): WebGLTexture;
|
|
|
createRawTexture(data: ArrayBufferView, width: number, height: number, format: number, generateMipMaps: boolean, invertY: boolean, samplingMode: number): WebGLTexture;
|
|
|
- createDynamicTexture(width: number, height: number, generateMipMaps: boolean, samplingMode: number): WebGLTexture;
|
|
|
+ createDynamicTexture(width: number, height: number, generateMipMaps: boolean, samplingMode: number, forceExponantOfTwo?: boolean): WebGLTexture;
|
|
|
updateTextureSamplingMode(samplingMode: number, texture: WebGLTexture): void;
|
|
|
updateDynamicTexture(texture: WebGLTexture, canvas: HTMLCanvasElement, invertY: boolean): void;
|
|
|
updateVideoTexture(texture: WebGLTexture, video: HTMLVideoElement, invertY: boolean): void;
|
|
@@ -377,6 +377,10 @@ interface Navigator {
|
|
|
mozGetVRDevices: (any) => any;
|
|
|
isCocoonJS: boolean;
|
|
|
}
|
|
|
+interface Screen {
|
|
|
+ orientation: string;
|
|
|
+ mozOrientation: string;
|
|
|
+}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
* Node is the basic class for all scene objects (Mesh, Light Camera).
|
|
@@ -1304,7 +1308,7 @@ declare module BABYLON {
|
|
|
private _scene;
|
|
|
private _registerFunc;
|
|
|
private _audioEngine;
|
|
|
- constructor(scene: BABYLON.Scene);
|
|
|
+ constructor(scene: Scene);
|
|
|
getFrequencyBinCount(): number;
|
|
|
getByteFrequencyData(): Uint8Array;
|
|
|
getByteTimeDomainData(): Uint8Array;
|
|
@@ -1384,6 +1388,7 @@ declare module BABYLON {
|
|
|
setAudioBuffer(audioBuffer: AudioBuffer): void;
|
|
|
updateOptions(options: any): void;
|
|
|
private _createSpatialParameters();
|
|
|
+ private _updateSpatialParameters();
|
|
|
switchPanningModelToHRTF(): void;
|
|
|
switchPanningModelToEqualPower(): void;
|
|
|
private _switchPanningModel();
|
|
@@ -1422,17 +1427,18 @@ declare module BABYLON {
|
|
|
declare module BABYLON {
|
|
|
class SoundTrack {
|
|
|
private _audioEngine;
|
|
|
- private _trackGain;
|
|
|
+ private _outputAudioNode;
|
|
|
+ private _inputAudioNode;
|
|
|
private _trackConvolver;
|
|
|
private _scene;
|
|
|
id: number;
|
|
|
- soundCollection: Array<BABYLON.Sound>;
|
|
|
+ soundCollection: Array<Sound>;
|
|
|
private _isMainTrack;
|
|
|
private _connectedAnalyser;
|
|
|
- constructor(scene: BABYLON.Scene, options?: any);
|
|
|
+ constructor(scene: Scene, options?: any);
|
|
|
dispose(): void;
|
|
|
- AddSound(sound: BABYLON.Sound): void;
|
|
|
- RemoveSound(sound: BABYLON.Sound): void;
|
|
|
+ AddSound(sound: Sound): void;
|
|
|
+ RemoveSound(sound: Sound): void;
|
|
|
setVolume(newVolume: number): void;
|
|
|
switchPanningModelToHRTF(): void;
|
|
|
switchPanningModelToEqualPower(): void;
|
|
@@ -1486,7 +1492,10 @@ declare module BABYLON {
|
|
|
constructor(name: string, position: Vector3, eyeSpace: number, scene: Scene);
|
|
|
}
|
|
|
class AnaglyphArcRotateCamera extends ArcRotateCamera {
|
|
|
- constructor(name: string, alpha: number, beta: number, radius: number, target: any, eyeSpace: number, scene: any);
|
|
|
+ constructor(name: string, alpha: number, beta: number, radius: number, target: any, eyeSpace: number, scene: Scene);
|
|
|
+ }
|
|
|
+ class AnaglyphGamepadCamera extends GamepadCamera {
|
|
|
+ constructor(name: string, position: Vector3, eyeSpace: number, scene: Scene);
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON {
|
|
@@ -1514,6 +1523,7 @@ declare module BABYLON {
|
|
|
zoomOnFactor: number;
|
|
|
targetScreenOffset: Vector2;
|
|
|
pinchInwards: boolean;
|
|
|
+ allowUpsideDown: boolean;
|
|
|
private _keys;
|
|
|
private _viewMatrix;
|
|
|
private _attachedElement;
|
|
@@ -1548,6 +1558,7 @@ declare module BABYLON {
|
|
|
attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
detachControl(element: HTMLElement): void;
|
|
|
_checkInputs(): void;
|
|
|
+ private _checkLimits();
|
|
|
setPosition(position: Vector3): void;
|
|
|
_getViewMatrix(): Matrix;
|
|
|
private _onCollisionPositionChange;
|
|
@@ -1555,14 +1566,14 @@ declare module BABYLON {
|
|
|
focusOn(meshesOrMinMaxVectorAndDistance: any): void;
|
|
|
/**
|
|
|
* @override
|
|
|
- * needs to be overridden, so sub has required properties to be copied
|
|
|
+ * Override Camera.createRigCamera
|
|
|
*/
|
|
|
- getSubCamera(name: string, isA: boolean): Camera;
|
|
|
+ createRigCamera(name: string, cameraIndex: number): Camera;
|
|
|
/**
|
|
|
* @override
|
|
|
- * needs to be overridden, adding copy of alpha, beta & radius
|
|
|
+ * Override Camera._updateRigCameras
|
|
|
*/
|
|
|
- _updateSubCameras(): void;
|
|
|
+ _updateRigCameras(): void;
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON {
|
|
@@ -1594,24 +1605,22 @@ declare module BABYLON {
|
|
|
private static _ORTHOGRAPHIC_CAMERA;
|
|
|
private static _FOVMODE_VERTICAL_FIXED;
|
|
|
private static _FOVMODE_HORIZONTAL_FIXED;
|
|
|
- private static _SUB_CAMERA_MODE_NONE;
|
|
|
- private static _SUB_CAMERA_MODE_ANAGLYPH;
|
|
|
- private static _SUB_CAMERA_MODE_HORIZONTAL_STEREOGRAM;
|
|
|
- private static _SUB_CAMERA_MODE_VERTICAL_STEREOGRAM;
|
|
|
- private static _SUB_CAMERA_MODE_VR;
|
|
|
- private static _SUB_CAMERAID_A;
|
|
|
- private static _SUB_CAMERAID_B;
|
|
|
+ private static _RIG_MODE_NONE;
|
|
|
+ private static _RIG_MODE_STEREOSCOPIC_ANAGLYPH;
|
|
|
+ private static _RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL;
|
|
|
+ private static _RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED;
|
|
|
+ private static _RIG_MODE_STEREOSCOPIC_OVERUNDER;
|
|
|
+ private static _RIG_MODE_VR;
|
|
|
static PERSPECTIVE_CAMERA: number;
|
|
|
static ORTHOGRAPHIC_CAMERA: number;
|
|
|
static FOVMODE_VERTICAL_FIXED: number;
|
|
|
static FOVMODE_HORIZONTAL_FIXED: number;
|
|
|
- static SUB_CAMERA_MODE_NONE: number;
|
|
|
- static SUB_CAMERA_MODE_ANAGLYPH: number;
|
|
|
- static SUB_CAMERA_MODE_HORIZONTAL_STEREOGRAM: number;
|
|
|
- static SUB_CAMERA_MODE_VERTICAL_STEREOGRAM: number;
|
|
|
- static SUB_CAMERA_MODE_VR: number;
|
|
|
- static SUB_CAMERAID_A: number;
|
|
|
- static SUB_CAMERAID_B: number;
|
|
|
+ static RIG_MODE_NONE: number;
|
|
|
+ static RIG_MODE_STEREOSCOPIC_ANAGLYPH: number;
|
|
|
+ static RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL: number;
|
|
|
+ static RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_CROSSEYED: number;
|
|
|
+ static RIG_MODE_STEREOSCOPIC_OVERUNDER: number;
|
|
|
+ static RIG_MODE_VR: number;
|
|
|
upVector: Vector3;
|
|
|
orthoLeft: any;
|
|
|
orthoRight: any;
|
|
@@ -1626,14 +1635,9 @@ declare module BABYLON {
|
|
|
viewport: Viewport;
|
|
|
layerMask: number;
|
|
|
fovMode: number;
|
|
|
- subCameras: Camera[];
|
|
|
- _subCameraMode: number;
|
|
|
- _subCamHalfSpace: number;
|
|
|
- private _vrMetrics;
|
|
|
- private _vrHMatrix;
|
|
|
- _vrPreViewMatrix: Matrix;
|
|
|
- _vrWorkMatrix: Matrix;
|
|
|
- _vrActualUp: Vector3;
|
|
|
+ cameraRigMode: number;
|
|
|
+ _cameraRigParams: any;
|
|
|
+ _rigCameras: Camera[];
|
|
|
private _computedViewMatrix;
|
|
|
_projectionMatrix: Matrix;
|
|
|
private _worldMatrix;
|
|
@@ -1663,17 +1667,17 @@ declare module BABYLON {
|
|
|
_computeViewMatrix(force?: boolean): Matrix;
|
|
|
getProjectionMatrix(force?: boolean): Matrix;
|
|
|
dispose(): void;
|
|
|
- setSubCameraMode(mode: number, halfSpace?: number, metrics?: VRCameraMetrics): void;
|
|
|
+ setCameraRigMode(mode: number, rigParams: any): void;
|
|
|
private _getVRProjectionMatrix();
|
|
|
- setSubCamHalfSapce(halfSapce: number): void;
|
|
|
+ setCameraRigParameter(name: string, value: any): void;
|
|
|
/**
|
|
|
* May needs to be overridden by children so sub has required properties to be copied
|
|
|
*/
|
|
|
- getSubCamera(name: string, isA: boolean): Camera;
|
|
|
+ createRigCamera(name: string, cameraIndex: number): Camera;
|
|
|
/**
|
|
|
* May needs to be overridden by children
|
|
|
*/
|
|
|
- _updateSubCameras(): void;
|
|
|
+ _updateRigCameras(): void;
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON {
|
|
@@ -1759,6 +1763,48 @@ declare module BABYLON {
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
+ class StereogramFreeCamera extends FreeCamera {
|
|
|
+ constructor(name: string, position: Vector3, eyeSpace: number, isVertical: boolean, scene: Scene);
|
|
|
+ }
|
|
|
+ class StereogramArcRotateCamera extends ArcRotateCamera {
|
|
|
+ constructor(name: string, alpha: number, beta: number, radius: number, target: any, eyeSpace: number, isVertical: boolean, scene: Scene);
|
|
|
+ }
|
|
|
+ class StereogramGamepadCamera extends GamepadCamera {
|
|
|
+ constructor(name: string, position: Vector3, eyeSpace: number, isVertical: boolean, scene: Scene);
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
+ class StereoscopicFreeCamera extends FreeCamera {
|
|
|
+ constructor(name: string, position: Vector3, eyeSpace: number, isVertical: boolean, scene: Scene);
|
|
|
+ }
|
|
|
+ class StereoscopicArcRotateCamera extends ArcRotateCamera {
|
|
|
+ constructor(name: string, alpha: number, beta: number, radius: number, target: any, eyeSpace: number, isVertical: boolean, scene: Scene);
|
|
|
+ }
|
|
|
+ class StereoscopicGamepadCamera extends GamepadCamera {
|
|
|
+ constructor(name: string, position: Vector3, eyeSpace: number, isVertical: boolean, scene: Scene);
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
+ class AnaglyphFreeCamera extends FreeCamera {
|
|
|
+ constructor(name: string, position: Vector3, interaxialDistance: number, scene: Scene);
|
|
|
+ }
|
|
|
+ class AnaglyphArcRotateCamera extends ArcRotateCamera {
|
|
|
+ constructor(name: string, alpha: number, beta: number, radius: number, target: any, interaxialDistance: number, scene: Scene);
|
|
|
+ }
|
|
|
+ class AnaglyphGamepadCamera extends GamepadCamera {
|
|
|
+ constructor(name: string, position: Vector3, interaxialDistance: number, scene: Scene);
|
|
|
+ }
|
|
|
+ class StereoscopicFreeCamera extends FreeCamera {
|
|
|
+ constructor(name: string, position: Vector3, interaxialDistance: number, isSideBySide: boolean, scene: Scene);
|
|
|
+ }
|
|
|
+ class StereoscopicArcRotateCamera extends ArcRotateCamera {
|
|
|
+ constructor(name: string, alpha: number, beta: number, radius: number, target: any, interaxialDistance: number, isSideBySide: boolean, scene: Scene);
|
|
|
+ }
|
|
|
+ class StereoscopicGamepadCamera extends GamepadCamera {
|
|
|
+ constructor(name: string, position: Vector3, interaxialDistance: number, isSideBySide: boolean, scene: Scene);
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
class TargetCamera extends Camera {
|
|
|
cameraDirection: Vector3;
|
|
|
cameraRotation: Vector2;
|
|
@@ -1771,7 +1817,7 @@ declare module BABYLON {
|
|
|
_camMatrix: Matrix;
|
|
|
_cameraTransformMatrix: Matrix;
|
|
|
_cameraRotationMatrix: Matrix;
|
|
|
- private _subCamTransformMatrix;
|
|
|
+ private _rigCamTransformMatrix;
|
|
|
_referencePoint: Vector3;
|
|
|
_transformedReferencePoint: Vector3;
|
|
|
_lookAtTemp: Matrix;
|
|
@@ -1793,15 +1839,15 @@ declare module BABYLON {
|
|
|
_getVRViewMatrix(): Matrix;
|
|
|
/**
|
|
|
* @override
|
|
|
- * needs to be overridden, so sub has required properties to be copied
|
|
|
+ * Override Camera.createRigCamera
|
|
|
*/
|
|
|
- getSubCamera(name: string, isA: boolean): Camera;
|
|
|
+ createRigCamera(name: string, cameraIndex: number): Camera;
|
|
|
/**
|
|
|
* @override
|
|
|
- * needs to be overridden, adding copy of position, and rotation for VR, or target for rest
|
|
|
+ * Override Camera._updateRigCameras
|
|
|
*/
|
|
|
- _updateSubCameras(): void;
|
|
|
- private _getSubCamPosition(halfSpace, result);
|
|
|
+ _updateRigCameras(): void;
|
|
|
+ private _getRigCamPosition(halfSpace, result);
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON {
|
|
@@ -1832,13 +1878,13 @@ declare module BABYLON {
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
- class VRDeviceOrientationFreeCamera extends BABYLON.FreeCamera {
|
|
|
+ class VRDeviceOrientationFreeCamera extends FreeCamera {
|
|
|
_alpha: number;
|
|
|
_beta: number;
|
|
|
_gamma: number;
|
|
|
private _offsetOrientation;
|
|
|
private _deviceOrientationHandler;
|
|
|
- constructor(name: string, position: Vector3, scene: Scene);
|
|
|
+ constructor(name: string, position: Vector3, scene: Scene, compensateDistorsion?: boolean);
|
|
|
_onOrientationEvent(evt: DeviceOrientationEvent): void;
|
|
|
attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
detachControl(element: HTMLElement): void;
|
|
@@ -1854,7 +1900,7 @@ declare module BABYLON {
|
|
|
_cacheQuaternion: Quaternion;
|
|
|
_cacheRotation: Vector3;
|
|
|
_vrEnabled: boolean;
|
|
|
- constructor(name: string, position: Vector3, scene: Scene);
|
|
|
+ constructor(name: string, position: Vector3, scene: Scene, compensateDistorsion?: boolean);
|
|
|
private _getWebVRDevices(devices);
|
|
|
_checkInputs(): void;
|
|
|
attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
@@ -1900,7 +1946,7 @@ declare module BABYLON {
|
|
|
declare module BABYLON {
|
|
|
var CollisionWorker: string;
|
|
|
interface ICollisionCoordinator {
|
|
|
- getNewPosition(position: Vector3, velocity: Vector3, collider: Collider, maximumRetry: number, excludedMesh: AbstractMesh, onNewPosition: (collisionIndex: number, newPosition: BABYLON.Vector3, collidedMesh?: BABYLON.AbstractMesh) => void, collisionIndex: number): void;
|
|
|
+ getNewPosition(position: Vector3, velocity: Vector3, collider: Collider, maximumRetry: number, excludedMesh: AbstractMesh, onNewPosition: (collisionIndex: number, newPosition: Vector3, collidedMesh?: AbstractMesh) => void, collisionIndex: number): void;
|
|
|
init(scene: Scene): void;
|
|
|
destroy(): void;
|
|
|
onMeshAdded(mesh: AbstractMesh): any;
|
|
@@ -2003,7 +2049,7 @@ declare module BABYLON {
|
|
|
constructor();
|
|
|
static SerializeMesh: (mesh: AbstractMesh) => SerializedMesh;
|
|
|
static SerializeGeometry: (geometry: Geometry) => SerializedGeometry;
|
|
|
- getNewPosition(position: Vector3, velocity: Vector3, collider: Collider, maximumRetry: number, excludedMesh: AbstractMesh, onNewPosition: (collisionIndex: number, newPosition: BABYLON.Vector3, collidedMesh?: BABYLON.AbstractMesh) => void, collisionIndex: number): void;
|
|
|
+ getNewPosition(position: Vector3, velocity: Vector3, collider: Collider, maximumRetry: number, excludedMesh: AbstractMesh, onNewPosition: (collisionIndex: number, newPosition: Vector3, collidedMesh?: AbstractMesh) => void, collisionIndex: number): void;
|
|
|
init(scene: Scene): void;
|
|
|
destroy(): void;
|
|
|
onMeshAdded(mesh: AbstractMesh): void;
|
|
@@ -2020,7 +2066,7 @@ declare module BABYLON {
|
|
|
private _scaledPosition;
|
|
|
private _scaledVelocity;
|
|
|
private _finalPosition;
|
|
|
- getNewPosition(position: Vector3, velocity: Vector3, collider: Collider, maximumRetry: number, excludedMesh: AbstractMesh, onNewPosition: (collisionIndex: number, newPosition: BABYLON.Vector3, collidedMesh?: BABYLON.AbstractMesh) => void, collisionIndex: number): void;
|
|
|
+ getNewPosition(position: Vector3, velocity: Vector3, collider: Collider, maximumRetry: number, excludedMesh: AbstractMesh, onNewPosition: (collisionIndex: number, newPosition: Vector3, collidedMesh?: AbstractMesh) => void, collisionIndex: number): void;
|
|
|
init(scene: Scene): void;
|
|
|
destroy(): void;
|
|
|
onMeshAdded(mesh: AbstractMesh): void;
|
|
@@ -2049,13 +2095,13 @@ declare module BABYLON {
|
|
|
addGeometry(geometry: SerializedGeometry): void;
|
|
|
}
|
|
|
class CollideWorker {
|
|
|
- collider: BABYLON.Collider;
|
|
|
+ collider: Collider;
|
|
|
private _collisionCache;
|
|
|
private finalPosition;
|
|
|
private collisionsScalingMatrix;
|
|
|
private collisionTranformationMatrix;
|
|
|
- constructor(collider: BABYLON.Collider, _collisionCache: CollisionCache, finalPosition: BABYLON.Vector3);
|
|
|
- collideWithWorld(position: BABYLON.Vector3, velocity: BABYLON.Vector3, maximumRetry: number, excludedMeshUniqueId?: number): void;
|
|
|
+ constructor(collider: Collider, _collisionCache: CollisionCache, finalPosition: Vector3);
|
|
|
+ collideWithWorld(position: Vector3, velocity: Vector3, maximumRetry: number, excludedMeshUniqueId?: number): void;
|
|
|
private checkCollision(mesh);
|
|
|
private processCollisionsForSubMeshes(transformMatrix, mesh);
|
|
|
private collideForSubMesh(subMesh, transformMatrix, meshGeometry);
|
|
@@ -2870,7 +2916,7 @@ declare module BABYLON {
|
|
|
video: HTMLVideoElement;
|
|
|
private _autoLaunch;
|
|
|
private _lastUpdate;
|
|
|
- constructor(name: string, urls: string[], size: any, scene: Scene, generateMipMaps: boolean, invertY: boolean, samplingMode?: number);
|
|
|
+ constructor(name: string, urls: string[], scene: Scene, generateMipMaps?: boolean, invertY?: boolean, samplingMode?: number);
|
|
|
update(): boolean;
|
|
|
}
|
|
|
}
|
|
@@ -3534,7 +3580,6 @@ declare module BABYLON {
|
|
|
showBoundingBox: boolean;
|
|
|
showSubMeshesBoundingBox: boolean;
|
|
|
onDispose: any;
|
|
|
- checkCollisions: boolean;
|
|
|
isBlocker: boolean;
|
|
|
skeleton: Skeleton;
|
|
|
renderingGroupId: number;
|
|
@@ -3559,6 +3604,7 @@ declare module BABYLON {
|
|
|
_physicsMass: number;
|
|
|
_physicsFriction: number;
|
|
|
_physicRestitution: number;
|
|
|
+ private _checkCollisions;
|
|
|
ellipsoid: Vector3;
|
|
|
ellipsoidOffset: Vector3;
|
|
|
private _collider;
|
|
@@ -3677,6 +3723,7 @@ declare module BABYLON {
|
|
|
applyImpulse(force: Vector3, contactPoint: Vector3): void;
|
|
|
setPhysicsLinkWith(otherMesh: Mesh, pivot1: Vector3, pivot2: Vector3, options?: any): void;
|
|
|
updatePhysicsBodyPosition(): void;
|
|
|
+ checkCollisions: boolean;
|
|
|
moveWithCollisions(velocity: Vector3): void;
|
|
|
private _onCollisionPositionChange;
|
|
|
/**
|
|
@@ -4083,9 +4130,11 @@ declare module BABYLON {
|
|
|
static CreateTorus(name: string, diameter: number, thickness: number, tessellation: number, scene: Scene, updatable?: boolean, sideOrientation?: number): Mesh;
|
|
|
static CreateTorusKnot(name: string, radius: number, tube: number, radialSegments: number, tubularSegments: number, p: number, q: number, scene: Scene, updatable?: boolean, sideOrientation?: number): Mesh;
|
|
|
static CreateLines(name: string, points: Vector3[], scene: Scene, updatable?: boolean, linesInstance?: LinesMesh): LinesMesh;
|
|
|
+ static CreateDashedLines(name: string, points: Vector3[], dashSize: number, gapSize: number, dashNb: number, scene: Scene, updatable?: boolean, linesInstance?: LinesMesh): LinesMesh;
|
|
|
static ExtrudeShape(name: string, shape: Vector3[], path: Vector3[], scale: number, rotation: number, cap: number, scene: Scene, updatable?: boolean, sideOrientation?: number, extrudedInstance?: Mesh): Mesh;
|
|
|
static ExtrudeShapeCustom(name: string, shape: Vector3[], path: Vector3[], scaleFunction: any, rotationFunction: any, ribbonCloseArray: boolean, ribbonClosePath: boolean, cap: number, scene: Scene, updatable?: boolean, sideOrientation?: number, extrudedInstance?: Mesh): Mesh;
|
|
|
private static _ExtrudeShapeGeneric(name, shape, curve, scale, rotation, scaleFunction, rotateFunction, rbCA, rbCP, cap, custom, scene, updtbl, side, instance);
|
|
|
+ static CreateLathe(name: string, shape: Vector3[], radius: number, tessellation: number, scene: Scene, updatable?: boolean, sideOrientation?: number): Mesh;
|
|
|
static CreatePlane(name: string, size: number, scene: Scene, updatable?: boolean, sideOrientation?: number): Mesh;
|
|
|
static CreateGround(name: string, width: number, height: number, subdivisions: number, scene: Scene, updatable?: boolean): Mesh;
|
|
|
static CreateTiledGround(name: string, xmin: number, zmin: number, xmax: number, zmax: number, subdivisions: {
|
|
@@ -4151,6 +4200,7 @@ declare module BABYLON {
|
|
|
static CreateCylinder(height: number, diameterTop: number, diameterBottom: number, tessellation: number, subdivisions?: number, sideOrientation?: number): VertexData;
|
|
|
static CreateTorus(diameter: any, thickness: any, tessellation: any, sideOrientation?: number): VertexData;
|
|
|
static CreateLines(points: Vector3[]): VertexData;
|
|
|
+ static CreateDashedLines(points: Vector3[], dashSize: number, gapSize: number, dashNb: number): VertexData;
|
|
|
static CreateGround(width: number, height: number, subdivisions: number): VertexData;
|
|
|
static CreateTiledGround(xmin: number, zmin: number, xmax: number, zmax: number, subdivisions?: {
|
|
|
w: number;
|
|
@@ -4726,19 +4776,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
- class OculusDistortionCorrectionPostProcess extends PostProcess {
|
|
|
- aspectRatio: number;
|
|
|
- private _isRightEye;
|
|
|
- private _distortionFactors;
|
|
|
- private _postProcessScaleFactor;
|
|
|
- private _lensCenterOffset;
|
|
|
- private _scaleIn;
|
|
|
- private _scaleFactor;
|
|
|
- private _lensCenter;
|
|
|
- constructor(name: string, camera: Camera, isRightEye: boolean, cameraSettings: any);
|
|
|
- }
|
|
|
-}
|
|
|
-declare module BABYLON {
|
|
|
class PassPostProcess extends PostProcess {
|
|
|
constructor(name: string, ratio: number, camera: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean);
|
|
|
}
|
|
@@ -4888,6 +4925,12 @@ declare module BABYLON {
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
+ class StereoscopicInterlacePostProcess extends PostProcess {
|
|
|
+ private _stepSize;
|
|
|
+ constructor(name: string, camB: Camera, postProcessA: PostProcess, isStereoscopicHoriz: boolean, samplingMode?: number);
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
class VolumetricLightScatteringPostProcess extends PostProcess {
|
|
|
private _volumetricLightScatteringPass;
|
|
|
private _volumetricLightScatteringRTT;
|
|
@@ -5299,7 +5342,8 @@ declare module BABYLON {
|
|
|
private hasReachedQuota;
|
|
|
private isSupported;
|
|
|
private idbFactory;
|
|
|
- static isUASupportingBlobStorage: boolean;
|
|
|
+ static IsUASupportingBlobStorage: boolean;
|
|
|
+ static IDBStorageEnabled: boolean;
|
|
|
constructor(urlToScene: string, callbackManifestChecked: (boolean) => any);
|
|
|
static parseURL: (url: string) => string;
|
|
|
static ReturnFullUrlLocation: (url: string) => string;
|
|
@@ -5586,7 +5630,8 @@ declare module BABYLON {
|
|
|
class Tools {
|
|
|
static BaseUrl: string;
|
|
|
static SetImmediate(action: () => void): void;
|
|
|
- static GetExponantOfTwo: (value: number, max: number) => number;
|
|
|
+ static IsExponantOfTwo(value: number): boolean;
|
|
|
+ static GetExponantOfTwo(value: number, max: number): number;
|
|
|
static GetFilename(path: string): string;
|
|
|
static GetDOMTextContent(element: HTMLElement): string;
|
|
|
static ToDegrees(angle: number): number;
|