|
@@ -1633,7 +1633,7 @@ declare module BABYLON {
|
|
chromaAbCorrection: number[];
|
|
chromaAbCorrection: number[];
|
|
postProcessScaleFactor: number;
|
|
postProcessScaleFactor: number;
|
|
lensCenterOffset: number;
|
|
lensCenterOffset: number;
|
|
- compensateDistorsion: boolean;
|
|
|
|
|
|
+ compensateDistortion: boolean;
|
|
aspectRatio: number;
|
|
aspectRatio: number;
|
|
aspectRatioFov: number;
|
|
aspectRatioFov: number;
|
|
leftHMatrix: Matrix;
|
|
leftHMatrix: Matrix;
|
|
@@ -1921,62 +1921,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 _syncPositions;
|
|
|
|
- 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): 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 Collider {
|
|
class Collider {
|
|
radius: Vector3;
|
|
radius: Vector3;
|
|
retry: number;
|
|
retry: number;
|
|
@@ -2277,6 +2221,62 @@ 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 _syncPositions;
|
|
|
|
+ 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): 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 Layer {
|
|
class Layer {
|
|
name: string;
|
|
name: string;
|
|
texture: Texture;
|
|
texture: Texture;
|
|
@@ -2338,38 +2338,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 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 DirectionalLight extends Light implements IShadowLight {
|
|
class DirectionalLight extends Light implements IShadowLight {
|
|
direction: Vector3;
|
|
direction: Vector3;
|
|
position: Vector3;
|
|
position: Vector3;
|
|
@@ -2474,6 +2442,38 @@ 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 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;
|
|
@@ -2592,6 +2592,7 @@ declare module BABYLON {
|
|
bindOnlyWorldMatrix(world: Matrix): void;
|
|
bindOnlyWorldMatrix(world: Matrix): void;
|
|
unbind(): void;
|
|
unbind(): void;
|
|
clone(name: string): Material;
|
|
clone(name: string): Material;
|
|
|
|
+ getBindedMeshes(): AbstractMesh[];
|
|
dispose(forceDisposeEffect?: boolean): void;
|
|
dispose(forceDisposeEffect?: boolean): void;
|
|
copyTo(other: Material): void;
|
|
copyTo(other: Material): void;
|
|
}
|
|
}
|
|
@@ -3886,6 +3887,8 @@ declare module BABYLON {
|
|
diameterX?: number;
|
|
diameterX?: number;
|
|
diameterY?: number;
|
|
diameterY?: number;
|
|
diameterZ?: number;
|
|
diameterZ?: number;
|
|
|
|
+ arc?: number;
|
|
|
|
+ slice?: number;
|
|
sideOrientation?: number;
|
|
sideOrientation?: number;
|
|
updatable?: boolean;
|
|
updatable?: boolean;
|
|
}, scene: any): Mesh;
|
|
}, scene: any): Mesh;
|
|
@@ -3896,6 +3899,7 @@ declare module BABYLON {
|
|
diameterBottom?: number;
|
|
diameterBottom?: number;
|
|
tessellation?: number;
|
|
tessellation?: number;
|
|
subdivisions?: number;
|
|
subdivisions?: number;
|
|
|
|
+ arc: number;
|
|
faceColors?: Color4[];
|
|
faceColors?: Color4[];
|
|
faceUV?: Vector4[];
|
|
faceUV?: Vector4[];
|
|
updatable?: boolean;
|
|
updatable?: boolean;
|
|
@@ -3965,6 +3969,8 @@ declare module BABYLON {
|
|
shape: Vector3[];
|
|
shape: Vector3[];
|
|
radius?: number;
|
|
radius?: number;
|
|
tessellation?: number;
|
|
tessellation?: number;
|
|
|
|
+ arc?: number;
|
|
|
|
+ closed: boolean;
|
|
updatable?: boolean;
|
|
updatable?: boolean;
|
|
sideOrientation?: number;
|
|
sideOrientation?: number;
|
|
}, scene: Scene): Mesh;
|
|
}, scene: Scene): Mesh;
|
|
@@ -4026,6 +4032,7 @@ declare module BABYLON {
|
|
(i: number, distance: number): number;
|
|
(i: number, distance: number): number;
|
|
};
|
|
};
|
|
cap?: number;
|
|
cap?: number;
|
|
|
|
+ arc?: number;
|
|
updatable?: boolean;
|
|
updatable?: boolean;
|
|
sideOrientation?: number;
|
|
sideOrientation?: number;
|
|
instance?: Mesh;
|
|
instance?: Mesh;
|
|
@@ -4114,6 +4121,8 @@ declare module BABYLON {
|
|
diameterX?: number;
|
|
diameterX?: number;
|
|
diameterY?: number;
|
|
diameterY?: number;
|
|
diameterZ?: number;
|
|
diameterZ?: number;
|
|
|
|
+ arc?: number;
|
|
|
|
+ slice?: number;
|
|
sideOrientation?: number;
|
|
sideOrientation?: number;
|
|
}): VertexData;
|
|
}): VertexData;
|
|
static CreateCylinder(options: {
|
|
static CreateCylinder(options: {
|
|
@@ -4122,6 +4131,7 @@ declare module BABYLON {
|
|
diameterBottom?: number;
|
|
diameterBottom?: number;
|
|
tessellation?: number;
|
|
tessellation?: number;
|
|
subdivisions?: number;
|
|
subdivisions?: number;
|
|
|
|
+ arc?: number;
|
|
faceColors?: Color4[];
|
|
faceColors?: Color4[];
|
|
faceUV?: Vector4[];
|
|
faceUV?: Vector4[];
|
|
sideOrientation?: number;
|
|
sideOrientation?: number;
|
|
@@ -4429,57 +4439,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- interface IPhysicsEnginePlugin {
|
|
|
|
- initialize(iterations?: number): any;
|
|
|
|
- setGravity(gravity: Vector3): void;
|
|
|
|
- runOneStep(delta: number): void;
|
|
|
|
- registerMesh(mesh: AbstractMesh, impostor: number, options: PhysicsBodyCreationOptions): any;
|
|
|
|
- registerMeshesAsCompound(parts: PhysicsCompoundBodyPart[], options: PhysicsBodyCreationOptions): any;
|
|
|
|
- unregisterMesh(mesh: AbstractMesh): any;
|
|
|
|
- applyImpulse(mesh: AbstractMesh, force: Vector3, contactPoint: Vector3): void;
|
|
|
|
- createLink(mesh1: AbstractMesh, mesh2: AbstractMesh, pivot1: Vector3, pivot2: Vector3, options?: any): boolean;
|
|
|
|
- dispose(): void;
|
|
|
|
- isSupported(): boolean;
|
|
|
|
- updateBodyPosition(mesh: AbstractMesh): void;
|
|
|
|
- }
|
|
|
|
- interface PhysicsBodyCreationOptions {
|
|
|
|
- mass: number;
|
|
|
|
- friction: number;
|
|
|
|
- restitution: number;
|
|
|
|
- }
|
|
|
|
- interface PhysicsCompoundBodyPart {
|
|
|
|
- mesh: Mesh;
|
|
|
|
- impostor: number;
|
|
|
|
- }
|
|
|
|
- class PhysicsEngine {
|
|
|
|
- gravity: Vector3;
|
|
|
|
- private _currentPlugin;
|
|
|
|
- constructor(plugin?: IPhysicsEnginePlugin);
|
|
|
|
- _initialize(gravity?: Vector3): void;
|
|
|
|
- _runOneStep(delta: number): void;
|
|
|
|
- _setGravity(gravity: Vector3): void;
|
|
|
|
- _registerMesh(mesh: AbstractMesh, impostor: number, options: PhysicsBodyCreationOptions): any;
|
|
|
|
- _registerMeshesAsCompound(parts: PhysicsCompoundBodyPart[], options: PhysicsBodyCreationOptions): any;
|
|
|
|
- _unregisterMesh(mesh: AbstractMesh): void;
|
|
|
|
- _applyImpulse(mesh: AbstractMesh, force: Vector3, contactPoint: Vector3): void;
|
|
|
|
- _createLink(mesh1: AbstractMesh, mesh2: AbstractMesh, pivot1: Vector3, pivot2: Vector3, options?: any): boolean;
|
|
|
|
- _updateBodyPosition(mesh: AbstractMesh): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- isSupported(): boolean;
|
|
|
|
- static NoImpostor: number;
|
|
|
|
- static SphereImpostor: number;
|
|
|
|
- static BoxImpostor: number;
|
|
|
|
- static PlaneImpostor: number;
|
|
|
|
- static MeshImpostor: number;
|
|
|
|
- static CapsuleImpostor: number;
|
|
|
|
- static ConeImpostor: number;
|
|
|
|
- static CylinderImpostor: number;
|
|
|
|
- static ConvexHullImpostor: number;
|
|
|
|
- static Epsilon: number;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class Particle {
|
|
class Particle {
|
|
position: Vector3;
|
|
position: Vector3;
|
|
direction: Vector3;
|
|
direction: Vector3;
|
|
@@ -4573,6 +4532,57 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ interface IPhysicsEnginePlugin {
|
|
|
|
+ initialize(iterations?: number): any;
|
|
|
|
+ setGravity(gravity: Vector3): void;
|
|
|
|
+ runOneStep(delta: number): void;
|
|
|
|
+ registerMesh(mesh: AbstractMesh, impostor: number, options: PhysicsBodyCreationOptions): any;
|
|
|
|
+ registerMeshesAsCompound(parts: PhysicsCompoundBodyPart[], options: PhysicsBodyCreationOptions): any;
|
|
|
|
+ unregisterMesh(mesh: AbstractMesh): any;
|
|
|
|
+ applyImpulse(mesh: AbstractMesh, force: Vector3, contactPoint: Vector3): void;
|
|
|
|
+ createLink(mesh1: AbstractMesh, mesh2: AbstractMesh, pivot1: Vector3, pivot2: Vector3, options?: any): boolean;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ isSupported(): boolean;
|
|
|
|
+ updateBodyPosition(mesh: AbstractMesh): void;
|
|
|
|
+ }
|
|
|
|
+ interface PhysicsBodyCreationOptions {
|
|
|
|
+ mass: number;
|
|
|
|
+ friction: number;
|
|
|
|
+ restitution: number;
|
|
|
|
+ }
|
|
|
|
+ interface PhysicsCompoundBodyPart {
|
|
|
|
+ mesh: Mesh;
|
|
|
|
+ impostor: number;
|
|
|
|
+ }
|
|
|
|
+ class PhysicsEngine {
|
|
|
|
+ gravity: Vector3;
|
|
|
|
+ private _currentPlugin;
|
|
|
|
+ constructor(plugin?: IPhysicsEnginePlugin);
|
|
|
|
+ _initialize(gravity?: Vector3): void;
|
|
|
|
+ _runOneStep(delta: number): void;
|
|
|
|
+ _setGravity(gravity: Vector3): void;
|
|
|
|
+ _registerMesh(mesh: AbstractMesh, impostor: number, options: PhysicsBodyCreationOptions): any;
|
|
|
|
+ _registerMeshesAsCompound(parts: PhysicsCompoundBodyPart[], options: PhysicsBodyCreationOptions): any;
|
|
|
|
+ _unregisterMesh(mesh: AbstractMesh): void;
|
|
|
|
+ _applyImpulse(mesh: AbstractMesh, force: Vector3, contactPoint: Vector3): void;
|
|
|
|
+ _createLink(mesh1: AbstractMesh, mesh2: AbstractMesh, pivot1: Vector3, pivot2: Vector3, options?: any): boolean;
|
|
|
|
+ _updateBodyPosition(mesh: AbstractMesh): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ isSupported(): boolean;
|
|
|
|
+ static NoImpostor: number;
|
|
|
|
+ static SphereImpostor: number;
|
|
|
|
+ static BoxImpostor: number;
|
|
|
|
+ static PlaneImpostor: number;
|
|
|
|
+ static MeshImpostor: number;
|
|
|
|
+ static CapsuleImpostor: number;
|
|
|
|
+ static ConeImpostor: number;
|
|
|
|
+ static CylinderImpostor: number;
|
|
|
|
+ static ConvexHullImpostor: number;
|
|
|
|
+ static Epsilon: number;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
class ReflectionProbe {
|
|
class ReflectionProbe {
|
|
name: string;
|
|
name: string;
|
|
private _scene;
|
|
private _scene;
|
|
@@ -4594,6 +4604,108 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ class BoundingBoxRenderer {
|
|
|
|
+ frontColor: Color3;
|
|
|
|
+ backColor: Color3;
|
|
|
|
+ showBackLines: boolean;
|
|
|
|
+ renderList: SmartArray<BoundingBox>;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _colorShader;
|
|
|
|
+ private _vb;
|
|
|
|
+ private _ib;
|
|
|
|
+ constructor(scene: Scene);
|
|
|
|
+ private _prepareRessources();
|
|
|
|
+ reset(): void;
|
|
|
|
+ render(): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class DepthRenderer {
|
|
|
|
+ private _scene;
|
|
|
|
+ private _depthMap;
|
|
|
|
+ private _effect;
|
|
|
|
+ private _viewMatrix;
|
|
|
|
+ private _projectionMatrix;
|
|
|
|
+ private _transformMatrix;
|
|
|
|
+ private _worldViewProjection;
|
|
|
|
+ private _cachedDefines;
|
|
|
|
+ constructor(scene: Scene, type?: number);
|
|
|
|
+ isReady(subMesh: SubMesh, useInstances: boolean): boolean;
|
|
|
|
+ getDepthMap(): RenderTargetTexture;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class EdgesRenderer {
|
|
|
|
+ private _source;
|
|
|
|
+ private _linesPositions;
|
|
|
|
+ private _linesNormals;
|
|
|
|
+ private _linesIndices;
|
|
|
|
+ private _epsilon;
|
|
|
|
+ private _indicesCount;
|
|
|
|
+ private _lineShader;
|
|
|
|
+ private _vb0;
|
|
|
|
+ private _vb1;
|
|
|
|
+ private _ib;
|
|
|
|
+ private _buffers;
|
|
|
|
+ private _checkVerticesInsteadOfIndices;
|
|
|
|
+ constructor(source: AbstractMesh, epsilon?: number, checkVerticesInsteadOfIndices?: boolean);
|
|
|
|
+ private _prepareRessources();
|
|
|
|
+ dispose(): void;
|
|
|
|
+ private _processEdgeForAdjacencies(pa, pb, p0, p1, p2);
|
|
|
|
+ private _processEdgeForAdjacenciesWithVertices(pa, pb, p0, p1, p2);
|
|
|
|
+ private _checkEdge(faceIndex, edge, faceNormals, p0, p1);
|
|
|
|
+ _generateEdgesLines(): void;
|
|
|
|
+ render(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class OutlineRenderer {
|
|
|
|
+ private _scene;
|
|
|
|
+ private _effect;
|
|
|
|
+ private _cachedDefines;
|
|
|
|
+ constructor(scene: Scene);
|
|
|
|
+ render(subMesh: SubMesh, batch: _InstancesBatch, useOverlay?: boolean): void;
|
|
|
|
+ isReady(subMesh: SubMesh, useInstances: boolean): boolean;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class RenderingGroup {
|
|
|
|
+ index: number;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _opaqueSubMeshes;
|
|
|
|
+ private _transparentSubMeshes;
|
|
|
|
+ private _alphaTestSubMeshes;
|
|
|
|
+ private _activeVertices;
|
|
|
|
+ constructor(index: number, scene: Scene);
|
|
|
|
+ render(customRenderFunction: (opaqueSubMeshes: SmartArray<SubMesh>, transparentSubMeshes: SmartArray<SubMesh>, alphaTestSubMeshes: SmartArray<SubMesh>) => void): boolean;
|
|
|
|
+ prepare(): void;
|
|
|
|
+ dispatch(subMesh: SubMesh): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class RenderingManager {
|
|
|
|
+ static MAX_RENDERINGGROUPS: number;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _renderingGroups;
|
|
|
|
+ private _depthBufferAlreadyCleaned;
|
|
|
|
+ constructor(scene: Scene);
|
|
|
|
+ private _renderParticles(index, activeMeshes);
|
|
|
|
+ private _renderSprites(index);
|
|
|
|
+ private _clearDepthBuffer();
|
|
|
|
+ render(customRenderFunction: (opaqueSubMeshes: SmartArray<SubMesh>, transparentSubMeshes: SmartArray<SubMesh>, alphaTestSubMeshes: SmartArray<SubMesh>) => void, activeMeshes: AbstractMesh[], renderParticles: boolean, renderSprites: boolean): void;
|
|
|
|
+ reset(): void;
|
|
|
|
+ dispatch(subMesh: SubMesh): 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);
|
|
}
|
|
}
|
|
@@ -5147,108 +5259,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class BoundingBoxRenderer {
|
|
|
|
- frontColor: Color3;
|
|
|
|
- backColor: Color3;
|
|
|
|
- showBackLines: boolean;
|
|
|
|
- renderList: SmartArray<BoundingBox>;
|
|
|
|
- private _scene;
|
|
|
|
- private _colorShader;
|
|
|
|
- private _vb;
|
|
|
|
- private _ib;
|
|
|
|
- constructor(scene: Scene);
|
|
|
|
- private _prepareRessources();
|
|
|
|
- reset(): void;
|
|
|
|
- render(): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class DepthRenderer {
|
|
|
|
- private _scene;
|
|
|
|
- private _depthMap;
|
|
|
|
- private _effect;
|
|
|
|
- private _viewMatrix;
|
|
|
|
- private _projectionMatrix;
|
|
|
|
- private _transformMatrix;
|
|
|
|
- private _worldViewProjection;
|
|
|
|
- private _cachedDefines;
|
|
|
|
- constructor(scene: Scene, type?: number);
|
|
|
|
- isReady(subMesh: SubMesh, useInstances: boolean): boolean;
|
|
|
|
- getDepthMap(): RenderTargetTexture;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class EdgesRenderer {
|
|
|
|
- private _source;
|
|
|
|
- private _linesPositions;
|
|
|
|
- private _linesNormals;
|
|
|
|
- private _linesIndices;
|
|
|
|
- private _epsilon;
|
|
|
|
- private _indicesCount;
|
|
|
|
- private _lineShader;
|
|
|
|
- private _vb0;
|
|
|
|
- private _vb1;
|
|
|
|
- private _ib;
|
|
|
|
- private _buffers;
|
|
|
|
- private _checkVerticesInsteadOfIndices;
|
|
|
|
- constructor(source: AbstractMesh, epsilon?: number, checkVerticesInsteadOfIndices?: boolean);
|
|
|
|
- private _prepareRessources();
|
|
|
|
- dispose(): void;
|
|
|
|
- private _processEdgeForAdjacencies(pa, pb, p0, p1, p2);
|
|
|
|
- private _processEdgeForAdjacenciesWithVertices(pa, pb, p0, p1, p2);
|
|
|
|
- private _checkEdge(faceIndex, edge, faceNormals, p0, p1);
|
|
|
|
- _generateEdgesLines(): void;
|
|
|
|
- render(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class OutlineRenderer {
|
|
|
|
- private _scene;
|
|
|
|
- private _effect;
|
|
|
|
- private _cachedDefines;
|
|
|
|
- constructor(scene: Scene);
|
|
|
|
- render(subMesh: SubMesh, batch: _InstancesBatch, useOverlay?: boolean): void;
|
|
|
|
- isReady(subMesh: SubMesh, useInstances: boolean): boolean;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class RenderingGroup {
|
|
|
|
- index: number;
|
|
|
|
- private _scene;
|
|
|
|
- private _opaqueSubMeshes;
|
|
|
|
- private _transparentSubMeshes;
|
|
|
|
- private _alphaTestSubMeshes;
|
|
|
|
- private _activeVertices;
|
|
|
|
- constructor(index: number, scene: Scene);
|
|
|
|
- render(customRenderFunction: (opaqueSubMeshes: SmartArray<SubMesh>, transparentSubMeshes: SmartArray<SubMesh>, alphaTestSubMeshes: SmartArray<SubMesh>) => void): boolean;
|
|
|
|
- prepare(): void;
|
|
|
|
- dispatch(subMesh: SubMesh): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class RenderingManager {
|
|
|
|
- static MAX_RENDERINGGROUPS: number;
|
|
|
|
- private _scene;
|
|
|
|
- private _renderingGroups;
|
|
|
|
- private _depthBufferAlreadyCleaned;
|
|
|
|
- constructor(scene: Scene);
|
|
|
|
- private _renderParticles(index, activeMeshes);
|
|
|
|
- private _renderSprites(index);
|
|
|
|
- private _clearDepthBuffer();
|
|
|
|
- render(customRenderFunction: (opaqueSubMeshes: SmartArray<SubMesh>, transparentSubMeshes: SmartArray<SubMesh>, alphaTestSubMeshes: SmartArray<SubMesh>) => void, activeMeshes: AbstractMesh[], renderParticles: boolean, renderSprites: boolean): void;
|
|
|
|
- reset(): void;
|
|
|
|
- dispatch(subMesh: SubMesh): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class Sprite {
|
|
class Sprite {
|
|
name: string;
|
|
name: string;
|
|
position: Vector3;
|
|
position: Vector3;
|
|
@@ -5975,7 +5985,7 @@ declare module BABYLON {
|
|
_gamma: number;
|
|
_gamma: number;
|
|
private _offsetOrientation;
|
|
private _offsetOrientation;
|
|
private _deviceOrientationHandler;
|
|
private _deviceOrientationHandler;
|
|
- constructor(name: string, position: Vector3, scene: Scene, compensateDistorsion?: boolean);
|
|
|
|
|
|
+ constructor(name: string, position: Vector3, scene: Scene, compensateDistortion?: boolean);
|
|
_onOrientationEvent(evt: DeviceOrientationEvent): void;
|
|
_onOrientationEvent(evt: DeviceOrientationEvent): void;
|
|
attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
detachControl(element: HTMLElement): void;
|
|
detachControl(element: HTMLElement): void;
|
|
@@ -5992,7 +6002,7 @@ declare module BABYLON {
|
|
_cacheQuaternion: Quaternion;
|
|
_cacheQuaternion: Quaternion;
|
|
_cacheRotation: Vector3;
|
|
_cacheRotation: Vector3;
|
|
_vrEnabled: boolean;
|
|
_vrEnabled: boolean;
|
|
- constructor(name: string, position: Vector3, scene: Scene, compensateDistorsion?: boolean);
|
|
|
|
|
|
+ constructor(name: string, position: Vector3, scene: Scene, compensateDistortion?: boolean);
|
|
private _getWebVRDevices(devices);
|
|
private _getWebVRDevices(devices);
|
|
_checkInputs(): void;
|
|
_checkInputs(): void;
|
|
attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
@@ -6047,9 +6057,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-declare module BABYLON.Internals {
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class ShadowGenerator {
|
|
class ShadowGenerator {
|
|
private static _FILTER_NONE;
|
|
private static _FILTER_NONE;
|
|
@@ -6103,6 +6110,9 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+declare module BABYLON.Internals {
|
|
|
|
+}
|
|
|
|
+
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class BaseTexture {
|
|
class BaseTexture {
|
|
name: string;
|
|
name: string;
|