|
@@ -2109,125 +2109,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
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 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;
|
|
|
|
- _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 Collider {
|
|
class Collider {
|
|
radius: Vector3;
|
|
radius: Vector3;
|
|
retry: number;
|
|
retry: number;
|
|
@@ -2469,6 +2350,147 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
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;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+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;
|
|
|
|
+ _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 LensFlare {
|
|
class LensFlare {
|
|
size: number;
|
|
size: number;
|
|
position: number;
|
|
position: number;
|
|
@@ -2513,28 +2535,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
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;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class DirectionalLight extends Light implements IShadowLight {
|
|
class DirectionalLight extends Light implements IShadowLight {
|
|
direction: Vector3;
|
|
direction: Vector3;
|
|
position: Vector3;
|
|
position: Vector3;
|
|
@@ -2661,6 +2661,39 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ interface ISceneLoaderPlugin {
|
|
|
|
+ extensions: string;
|
|
|
|
+ importMesh: (meshesNames: any, scene: Scene, data: any, rootUrl: string, meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => boolean;
|
|
|
|
+ load: (scene: Scene, data: string, rootUrl: string) => boolean;
|
|
|
|
+ }
|
|
|
|
+ class SceneLoader {
|
|
|
|
+ private static _ForceFullSceneLoadingForIncremental;
|
|
|
|
+ private static _ShowLoadingScreen;
|
|
|
|
+ static ForceFullSceneLoadingForIncremental: boolean;
|
|
|
|
+ static ShowLoadingScreen: boolean;
|
|
|
|
+ private static _registeredPlugins;
|
|
|
|
+ private static _getPluginForFilename(sceneFilename);
|
|
|
|
+ static GetPluginForExtension(extension: string): ISceneLoaderPlugin;
|
|
|
|
+ static RegisterPlugin(plugin: ISceneLoaderPlugin): void;
|
|
|
|
+ static ImportMesh(meshesNames: any, rootUrl: string, sceneFilename: string, scene: Scene, onsuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, progressCallBack?: () => void, onerror?: (scene: Scene, e: any) => void): void;
|
|
|
|
+ /**
|
|
|
|
+ * Load a scene
|
|
|
|
+ * @param rootUrl a string that defines the root url for scene and resources
|
|
|
|
+ * @param sceneFilename a string that defines the name of the scene file. can start with "data:" following by the stringified version of the scene
|
|
|
|
+ * @param engine is the instance of BABYLON.Engine to use to create the scene
|
|
|
|
+ */
|
|
|
|
+ static Load(rootUrl: string, sceneFilename: any, engine: Engine, onsuccess?: (scene: Scene) => void, progressCallBack?: any, onerror?: (scene: Scene) => void): void;
|
|
|
|
+ /**
|
|
|
|
+ * Append a scene
|
|
|
|
+ * @param rootUrl a string that defines the root url for scene and resources
|
|
|
|
+ * @param sceneFilename a string that defines the name of the scene file. can start with "data:" following by the stringified version of the scene
|
|
|
|
+ * @param scene is the instance of BABYLON.Scene to append to
|
|
|
|
+ */
|
|
|
|
+ static Append(rootUrl: string, sceneFilename: any, scene: Scene, onsuccess?: (scene: Scene) => void, progressCallBack?: any, onerror?: (scene: Scene) => void): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
class EffectFallbacks {
|
|
class EffectFallbacks {
|
|
private _defines;
|
|
private _defines;
|
|
private _currentRank;
|
|
private _currentRank;
|
|
@@ -2941,39 +2974,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- interface ISceneLoaderPlugin {
|
|
|
|
- extensions: string;
|
|
|
|
- importMesh: (meshesNames: any, scene: Scene, data: any, rootUrl: string, meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => boolean;
|
|
|
|
- load: (scene: Scene, data: string, rootUrl: string) => boolean;
|
|
|
|
- }
|
|
|
|
- class SceneLoader {
|
|
|
|
- private static _ForceFullSceneLoadingForIncremental;
|
|
|
|
- private static _ShowLoadingScreen;
|
|
|
|
- static ForceFullSceneLoadingForIncremental: boolean;
|
|
|
|
- static ShowLoadingScreen: boolean;
|
|
|
|
- private static _registeredPlugins;
|
|
|
|
- private static _getPluginForFilename(sceneFilename);
|
|
|
|
- static GetPluginForExtension(extension: string): ISceneLoaderPlugin;
|
|
|
|
- static RegisterPlugin(plugin: ISceneLoaderPlugin): void;
|
|
|
|
- static ImportMesh(meshesNames: any, rootUrl: string, sceneFilename: string, scene: Scene, onsuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, progressCallBack?: () => void, onerror?: (scene: Scene, e: any) => void): void;
|
|
|
|
- /**
|
|
|
|
- * Load a scene
|
|
|
|
- * @param rootUrl a string that defines the root url for scene and resources
|
|
|
|
- * @param sceneFilename a string that defines the name of the scene file. can start with "data:" following by the stringified version of the scene
|
|
|
|
- * @param engine is the instance of BABYLON.Engine to use to create the scene
|
|
|
|
- */
|
|
|
|
- static Load(rootUrl: string, sceneFilename: any, engine: Engine, onsuccess?: (scene: Scene) => void, progressCallBack?: any, onerror?: (scene: Scene) => void): void;
|
|
|
|
- /**
|
|
|
|
- * Append a scene
|
|
|
|
- * @param rootUrl a string that defines the root url for scene and resources
|
|
|
|
- * @param sceneFilename a string that defines the name of the scene file. can start with "data:" following by the stringified version of the scene
|
|
|
|
- * @param scene is the instance of BABYLON.Scene to append to
|
|
|
|
- */
|
|
|
|
- static Append(rootUrl: string, sceneFilename: any, scene: Scene, onsuccess?: (scene: Scene) => void, progressCallBack?: any, onerror?: (scene: Scene) => void): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class SIMDVector3 {
|
|
class SIMDVector3 {
|
|
static TransformCoordinatesToRefSIMD(vector: Vector3, transformation: Matrix, result: Vector3): void;
|
|
static TransformCoordinatesToRefSIMD(vector: Vector3, transformation: Matrix, result: Vector3): void;
|
|
static TransformCoordinatesFromFloatsToRefSIMD(x: number, y: number, z: number, transformation: Matrix, result: Vector3): void;
|
|
static TransformCoordinatesFromFloatsToRefSIMD(x: number, y: number, z: number, transformation: Matrix, result: Vector3): void;
|
|
@@ -3699,6 +3699,7 @@ declare module BABYLON {
|
|
applyImpulse(force: Vector3, contactPoint: Vector3): void;
|
|
applyImpulse(force: Vector3, contactPoint: Vector3): void;
|
|
setPhysicsLinkWith(otherMesh: Mesh, pivot1: Vector3, pivot2: Vector3, options?: any): void;
|
|
setPhysicsLinkWith(otherMesh: Mesh, pivot1: Vector3, pivot2: Vector3, options?: any): void;
|
|
updatePhysicsBodyPosition(): void;
|
|
updatePhysicsBodyPosition(): void;
|
|
|
|
+ updatePhysicsBody(): void;
|
|
checkCollisions: boolean;
|
|
checkCollisions: boolean;
|
|
moveWithCollisions(velocity: Vector3): void;
|
|
moveWithCollisions(velocity: Vector3): void;
|
|
private _onCollisionPositionChange;
|
|
private _onCollisionPositionChange;
|
|
@@ -5259,6 +5260,7 @@ declare module BABYLON {
|
|
isSupported(): boolean;
|
|
isSupported(): boolean;
|
|
getPhysicsBodyOfMesh(mesh: AbstractMesh): any;
|
|
getPhysicsBodyOfMesh(mesh: AbstractMesh): any;
|
|
getPhysicsPluginName(): string;
|
|
getPhysicsPluginName(): string;
|
|
|
|
+ getWorldObject(): any;
|
|
static NoImpostor: number;
|
|
static NoImpostor: number;
|
|
static SphereImpostor: number;
|
|
static SphereImpostor: number;
|
|
static BoxImpostor: number;
|
|
static BoxImpostor: number;
|
|
@@ -5274,27 +5276,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class ReflectionProbe {
|
|
|
|
- name: string;
|
|
|
|
- private _scene;
|
|
|
|
- private _renderTargetTexture;
|
|
|
|
- private _projectionMatrix;
|
|
|
|
- private _viewMatrix;
|
|
|
|
- private _target;
|
|
|
|
- private _add;
|
|
|
|
- private _attachedMesh;
|
|
|
|
- position: Vector3;
|
|
|
|
- constructor(name: string, size: number, scene: Scene, generateMipMaps?: boolean);
|
|
|
|
- refreshRate: number;
|
|
|
|
- getScene(): Scene;
|
|
|
|
- cubeTexture: RenderTargetTexture;
|
|
|
|
- renderList: AbstractMesh[];
|
|
|
|
- attachToMesh(mesh: AbstractMesh): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class AnaglyphPostProcess extends PostProcess {
|
|
class AnaglyphPostProcess extends PostProcess {
|
|
constructor(name: string, ratio: number, camera: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean);
|
|
constructor(name: string, ratio: number, camera: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean);
|
|
}
|
|
}
|
|
@@ -5864,6 +5845,27 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ class ReflectionProbe {
|
|
|
|
+ name: string;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _renderTargetTexture;
|
|
|
|
+ private _projectionMatrix;
|
|
|
|
+ private _viewMatrix;
|
|
|
|
+ private _target;
|
|
|
|
+ private _add;
|
|
|
|
+ private _attachedMesh;
|
|
|
|
+ position: Vector3;
|
|
|
|
+ constructor(name: string, size: number, scene: Scene, generateMipMaps?: boolean);
|
|
|
|
+ refreshRate: number;
|
|
|
|
+ getScene(): Scene;
|
|
|
|
+ cubeTexture: RenderTargetTexture;
|
|
|
|
+ renderList: AbstractMesh[];
|
|
|
|
+ attachToMesh(mesh: AbstractMesh): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
class BoundingBoxRenderer {
|
|
class BoundingBoxRenderer {
|
|
frontColor: Color3;
|
|
frontColor: Color3;
|
|
backColor: Color3;
|
|
backColor: Color3;
|
|
@@ -6835,6 +6837,9 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+declare module BABYLON.Internals {
|
|
|
|
+}
|
|
|
|
+
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class BaseTexture {
|
|
class BaseTexture {
|
|
name: string;
|
|
name: string;
|
|
@@ -7060,9 +7065,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-declare module BABYLON.Internals {
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class CannonJSPlugin implements IPhysicsEnginePlugin {
|
|
class CannonJSPlugin implements IPhysicsEnginePlugin {
|
|
private _useDeltaForWorldStep;
|
|
private _useDeltaForWorldStep;
|