|
@@ -4737,120 +4737,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class BoundingBox implements ICullable {
|
|
|
|
- minimum: Vector3;
|
|
|
|
- maximum: Vector3;
|
|
|
|
- vectors: Vector3[];
|
|
|
|
- center: Vector3;
|
|
|
|
- centerWorld: Vector3;
|
|
|
|
- extendSize: Vector3;
|
|
|
|
- extendSizeWorld: 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 {
|
|
|
|
- interface ICullable {
|
|
|
|
- isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
|
- isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
|
- }
|
|
|
|
- class BoundingInfo implements ICullable {
|
|
|
|
- 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 Ray {
|
|
|
|
- origin: Vector3;
|
|
|
|
- direction: Vector3;
|
|
|
|
- length: number;
|
|
|
|
- private _edge1;
|
|
|
|
- private _edge2;
|
|
|
|
- private _pvec;
|
|
|
|
- private _tvec;
|
|
|
|
- private _qvec;
|
|
|
|
- private _tmpRay;
|
|
|
|
- private _rayHelper;
|
|
|
|
- constructor(origin: Vector3, direction: Vector3, length?: number);
|
|
|
|
- intersectsBoxMinMax(minimum: Vector3, maximum: Vector3): boolean;
|
|
|
|
- intersectsBox(box: BoundingBox): boolean;
|
|
|
|
- intersectsSphere(sphere: BoundingSphere): boolean;
|
|
|
|
- intersectsTriangle(vertex0: Vector3, vertex1: Vector3, vertex2: Vector3): IntersectionInfo;
|
|
|
|
- intersectsPlane(plane: Plane): number;
|
|
|
|
- intersectsMesh(mesh: AbstractMesh, fastCheck?: boolean): PickingInfo;
|
|
|
|
- intersectsMeshes(meshes: Array<AbstractMesh>, fastCheck?: boolean, results?: Array<PickingInfo>): Array<PickingInfo>;
|
|
|
|
- private _comparePickingInfo(pickingInfoA, pickingInfoB);
|
|
|
|
- private static smallnum;
|
|
|
|
- private static rayl;
|
|
|
|
- /**
|
|
|
|
- * Intersection test between the ray and a given segment whithin a given tolerance (threshold)
|
|
|
|
- * @param sega the first point of the segment to test the intersection against
|
|
|
|
- * @param segb the second point of the segment to test the intersection against
|
|
|
|
- * @param threshold the tolerance margin, if the ray doesn't intersect the segment but is close to the given threshold, the intersection is successful
|
|
|
|
- * @return the distance from the ray origin to the intersection point if there's intersection, or -1 if there's no intersection
|
|
|
|
- */
|
|
|
|
- intersectionSegment(sega: Vector3, segb: Vector3, threshold: number): number;
|
|
|
|
- static CreateNew(x: number, y: number, viewportWidth: number, viewportHeight: number, world: Matrix, view: Matrix, projection: Matrix): Ray;
|
|
|
|
- /**
|
|
|
|
- * Function will create a new transformed ray starting from origin and ending at the end point. Ray's length will be set, and ray will be
|
|
|
|
- * transformed to the given world matrix.
|
|
|
|
- * @param origin The origin point
|
|
|
|
- * @param end The end point
|
|
|
|
- * @param world a matrix to transform the ray to. Default is the identity matrix.
|
|
|
|
- */
|
|
|
|
- static CreateNewFromTo(origin: Vector3, end: Vector3, world?: Matrix): Ray;
|
|
|
|
- static Transform(ray: Ray, matrix: Matrix): Ray;
|
|
|
|
- static TransformToRef(ray: Ray, matrix: Matrix, result: Ray): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class Collider {
|
|
class Collider {
|
|
radius: Vector3;
|
|
radius: Vector3;
|
|
retry: number;
|
|
retry: number;
|
|
@@ -5094,6 +4980,225 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ class BoundingBox implements ICullable {
|
|
|
|
+ minimum: Vector3;
|
|
|
|
+ maximum: Vector3;
|
|
|
|
+ vectors: Vector3[];
|
|
|
|
+ center: Vector3;
|
|
|
|
+ centerWorld: Vector3;
|
|
|
|
+ extendSize: Vector3;
|
|
|
|
+ extendSizeWorld: 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 {
|
|
|
|
+ interface ICullable {
|
|
|
|
+ isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
|
+ isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
|
+ }
|
|
|
|
+ class BoundingInfo implements ICullable {
|
|
|
|
+ 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 Ray {
|
|
|
|
+ origin: Vector3;
|
|
|
|
+ direction: Vector3;
|
|
|
|
+ length: number;
|
|
|
|
+ private _edge1;
|
|
|
|
+ private _edge2;
|
|
|
|
+ private _pvec;
|
|
|
|
+ private _tvec;
|
|
|
|
+ private _qvec;
|
|
|
|
+ private _tmpRay;
|
|
|
|
+ private _rayHelper;
|
|
|
|
+ constructor(origin: Vector3, direction: Vector3, length?: number);
|
|
|
|
+ intersectsBoxMinMax(minimum: Vector3, maximum: Vector3): boolean;
|
|
|
|
+ intersectsBox(box: BoundingBox): boolean;
|
|
|
|
+ intersectsSphere(sphere: BoundingSphere): boolean;
|
|
|
|
+ intersectsTriangle(vertex0: Vector3, vertex1: Vector3, vertex2: Vector3): IntersectionInfo;
|
|
|
|
+ intersectsPlane(plane: Plane): number;
|
|
|
|
+ intersectsMesh(mesh: AbstractMesh, fastCheck?: boolean): PickingInfo;
|
|
|
|
+ intersectsMeshes(meshes: Array<AbstractMesh>, fastCheck?: boolean, results?: Array<PickingInfo>): Array<PickingInfo>;
|
|
|
|
+ private _comparePickingInfo(pickingInfoA, pickingInfoB);
|
|
|
|
+ private static smallnum;
|
|
|
|
+ private static rayl;
|
|
|
|
+ /**
|
|
|
|
+ * Intersection test between the ray and a given segment whithin a given tolerance (threshold)
|
|
|
|
+ * @param sega the first point of the segment to test the intersection against
|
|
|
|
+ * @param segb the second point of the segment to test the intersection against
|
|
|
|
+ * @param threshold the tolerance margin, if the ray doesn't intersect the segment but is close to the given threshold, the intersection is successful
|
|
|
|
+ * @return the distance from the ray origin to the intersection point if there's intersection, or -1 if there's no intersection
|
|
|
|
+ */
|
|
|
|
+ intersectionSegment(sega: Vector3, segb: Vector3, threshold: number): number;
|
|
|
|
+ static CreateNew(x: number, y: number, viewportWidth: number, viewportHeight: number, world: Matrix, view: Matrix, projection: Matrix): Ray;
|
|
|
|
+ /**
|
|
|
|
+ * Function will create a new transformed ray starting from origin and ending at the end point. Ray's length will be set, and ray will be
|
|
|
|
+ * transformed to the given world matrix.
|
|
|
|
+ * @param origin The origin point
|
|
|
|
+ * @param end The end point
|
|
|
|
+ * @param world a matrix to transform the ray to. Default is the identity matrix.
|
|
|
|
+ */
|
|
|
|
+ static CreateNewFromTo(origin: Vector3, end: Vector3, world?: Matrix): Ray;
|
|
|
|
+ static Transform(ray: Ray, matrix: Matrix): Ray;
|
|
|
|
+ static TransformToRef(ray: Ray, matrix: Matrix, result: Ray): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON.Debug {
|
|
|
|
+ class AxesViewer {
|
|
|
|
+ private _xline;
|
|
|
|
+ private _yline;
|
|
|
|
+ private _zline;
|
|
|
|
+ private _xmesh;
|
|
|
|
+ private _ymesh;
|
|
|
|
+ private _zmesh;
|
|
|
|
+ scene: Scene;
|
|
|
|
+ scaleLines: number;
|
|
|
|
+ constructor(scene: Scene, scaleLines?: number);
|
|
|
|
+ update(position: Vector3, xaxis: Vector3, yaxis: Vector3, zaxis: Vector3): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON.Debug {
|
|
|
|
+ class BoneAxesViewer extends Debug.AxesViewer {
|
|
|
|
+ mesh: Mesh;
|
|
|
|
+ bone: Bone;
|
|
|
|
+ pos: Vector3;
|
|
|
|
+ xaxis: Vector3;
|
|
|
|
+ yaxis: Vector3;
|
|
|
|
+ zaxis: Vector3;
|
|
|
|
+ constructor(scene: Scene, bone: Bone, mesh: Mesh, scaleLines?: number);
|
|
|
|
+ update(): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class DebugLayer {
|
|
|
|
+ private _scene;
|
|
|
|
+ static InspectorURL: string;
|
|
|
|
+ private _inspector;
|
|
|
|
+ constructor(scene: Scene);
|
|
|
|
+ /** Creates the inspector window. */
|
|
|
|
+ private _createInspector(config?);
|
|
|
|
+ isVisible(): boolean;
|
|
|
|
+ hide(): void;
|
|
|
|
+ show(config?: {
|
|
|
|
+ popup?: boolean;
|
|
|
|
+ initialTab?: number;
|
|
|
|
+ parentElement?: HTMLElement;
|
|
|
|
+ newColors?: {
|
|
|
|
+ backgroundColor?: string;
|
|
|
|
+ backgroundColorLighter?: string;
|
|
|
|
+ backgroundColorLighter2?: string;
|
|
|
|
+ backgroundColorLighter3?: string;
|
|
|
|
+ color?: string;
|
|
|
|
+ colorTop?: string;
|
|
|
|
+ colorBot?: string;
|
|
|
|
+ };
|
|
|
|
+ }): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class RayHelper {
|
|
|
|
+ ray: Ray;
|
|
|
|
+ private _renderPoints;
|
|
|
|
+ private _renderLine;
|
|
|
|
+ private _renderFunction;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _updateToMeshFunction;
|
|
|
|
+ private _attachedToMesh;
|
|
|
|
+ private _meshSpaceDirection;
|
|
|
|
+ private _meshSpaceOrigin;
|
|
|
|
+ static CreateAndShow(ray: Ray, scene: Scene, color: Color3): RayHelper;
|
|
|
|
+ constructor(ray: Ray);
|
|
|
|
+ show(scene: Scene, color: Color3): void;
|
|
|
|
+ hide(): void;
|
|
|
|
+ private _render();
|
|
|
|
+ attachToMesh(mesh: AbstractMesh, meshSpaceDirection?: Vector3, meshSpaceOrigin?: Vector3, length?: number): void;
|
|
|
|
+ detachFromMesh(): void;
|
|
|
|
+ private _updateToMesh();
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON.Debug {
|
|
|
|
+ /**
|
|
|
|
+ * Demo available here: http://www.babylonjs-playground.com/#1BZJVJ#8
|
|
|
|
+ */
|
|
|
|
+ class SkeletonViewer {
|
|
|
|
+ skeleton: Skeleton;
|
|
|
|
+ mesh: AbstractMesh;
|
|
|
|
+ autoUpdateBonesMatrices: boolean;
|
|
|
|
+ renderingGroupId: number;
|
|
|
|
+ color: Color3;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _debugLines;
|
|
|
|
+ private _debugMesh;
|
|
|
|
+ private _isEnabled;
|
|
|
|
+ private _renderFunction;
|
|
|
|
+ constructor(skeleton: Skeleton, mesh: AbstractMesh, scene: Scene, autoUpdateBonesMatrices?: boolean, renderingGroupId?: number);
|
|
|
|
+ isEnabled: boolean;
|
|
|
|
+ private _getBonePosition(position, bone, meshMat, x?, y?, z?);
|
|
|
|
+ private _getLinesForBonesWithLength(bones, meshMat);
|
|
|
|
+ private _getLinesForBonesNoLength(bones, meshMat);
|
|
|
|
+ update(): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Highlight layer options. This helps customizing the behaviour
|
|
* Highlight layer options. This helps customizing the behaviour
|
|
* of the highlight layer.
|
|
* of the highlight layer.
|
|
@@ -5349,111 +5454,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-declare module BABYLON.Debug {
|
|
|
|
- class AxesViewer {
|
|
|
|
- private _xline;
|
|
|
|
- private _yline;
|
|
|
|
- private _zline;
|
|
|
|
- private _xmesh;
|
|
|
|
- private _ymesh;
|
|
|
|
- private _zmesh;
|
|
|
|
- scene: Scene;
|
|
|
|
- scaleLines: number;
|
|
|
|
- constructor(scene: Scene, scaleLines?: number);
|
|
|
|
- update(position: Vector3, xaxis: Vector3, yaxis: Vector3, zaxis: Vector3): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON.Debug {
|
|
|
|
- class BoneAxesViewer extends Debug.AxesViewer {
|
|
|
|
- mesh: Mesh;
|
|
|
|
- bone: Bone;
|
|
|
|
- pos: Vector3;
|
|
|
|
- xaxis: Vector3;
|
|
|
|
- yaxis: Vector3;
|
|
|
|
- zaxis: Vector3;
|
|
|
|
- constructor(scene: Scene, bone: Bone, mesh: Mesh, scaleLines?: number);
|
|
|
|
- update(): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class DebugLayer {
|
|
|
|
- private _scene;
|
|
|
|
- static InspectorURL: string;
|
|
|
|
- private _inspector;
|
|
|
|
- constructor(scene: Scene);
|
|
|
|
- /** Creates the inspector window. */
|
|
|
|
- private _createInspector(config?);
|
|
|
|
- isVisible(): boolean;
|
|
|
|
- hide(): void;
|
|
|
|
- show(config?: {
|
|
|
|
- popup?: boolean;
|
|
|
|
- initialTab?: number;
|
|
|
|
- parentElement?: HTMLElement;
|
|
|
|
- newColors?: {
|
|
|
|
- backgroundColor?: string;
|
|
|
|
- backgroundColorLighter?: string;
|
|
|
|
- backgroundColorLighter2?: string;
|
|
|
|
- backgroundColorLighter3?: string;
|
|
|
|
- color?: string;
|
|
|
|
- colorTop?: string;
|
|
|
|
- colorBot?: string;
|
|
|
|
- };
|
|
|
|
- }): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class RayHelper {
|
|
|
|
- ray: Ray;
|
|
|
|
- private _renderPoints;
|
|
|
|
- private _renderLine;
|
|
|
|
- private _renderFunction;
|
|
|
|
- private _scene;
|
|
|
|
- private _updateToMeshFunction;
|
|
|
|
- private _attachedToMesh;
|
|
|
|
- private _meshSpaceDirection;
|
|
|
|
- private _meshSpaceOrigin;
|
|
|
|
- static CreateAndShow(ray: Ray, scene: Scene, color: Color3): RayHelper;
|
|
|
|
- constructor(ray: Ray);
|
|
|
|
- show(scene: Scene, color: Color3): void;
|
|
|
|
- hide(): void;
|
|
|
|
- private _render();
|
|
|
|
- attachToMesh(mesh: AbstractMesh, meshSpaceDirection?: Vector3, meshSpaceOrigin?: Vector3, length?: number): void;
|
|
|
|
- detachFromMesh(): void;
|
|
|
|
- private _updateToMesh();
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON.Debug {
|
|
|
|
- /**
|
|
|
|
- * Demo available here: http://www.babylonjs-playground.com/#1BZJVJ#8
|
|
|
|
- */
|
|
|
|
- class SkeletonViewer {
|
|
|
|
- skeleton: Skeleton;
|
|
|
|
- mesh: AbstractMesh;
|
|
|
|
- autoUpdateBonesMatrices: boolean;
|
|
|
|
- renderingGroupId: number;
|
|
|
|
- color: Color3;
|
|
|
|
- private _scene;
|
|
|
|
- private _debugLines;
|
|
|
|
- private _debugMesh;
|
|
|
|
- private _isEnabled;
|
|
|
|
- private _renderFunction;
|
|
|
|
- constructor(skeleton: Skeleton, mesh: AbstractMesh, scene: Scene, autoUpdateBonesMatrices?: boolean, renderingGroupId?: number);
|
|
|
|
- isEnabled: boolean;
|
|
|
|
- private _getBonePosition(position, bone, meshMat, x?, y?, z?);
|
|
|
|
- private _getLinesForBonesWithLength(bones, meshMat);
|
|
|
|
- private _getLinesForBonesNoLength(bones, meshMat);
|
|
|
|
- update(): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class LensFlare {
|
|
class LensFlare {
|
|
size: number;
|
|
size: number;
|
|
@@ -5500,61 +5500,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- interface ISceneLoaderPluginExtensions {
|
|
|
|
- [extension: string]: {
|
|
|
|
- isBinary: boolean;
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
- interface ISceneLoaderPlugin {
|
|
|
|
- extensions: string | ISceneLoaderPluginExtensions;
|
|
|
|
- importMesh: (meshesNames: any, scene: Scene, data: any, rootUrl: string, meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => boolean;
|
|
|
|
- load: (scene: Scene, data: string, rootUrl: string) => boolean;
|
|
|
|
- canDirectLoad?: (data: string) => boolean;
|
|
|
|
- }
|
|
|
|
- interface ISceneLoaderPluginAsync {
|
|
|
|
- extensions: string | ISceneLoaderPluginExtensions;
|
|
|
|
- importMeshAsync: (meshesNames: any, scene: Scene, data: any, rootUrl: string, onsuccess: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, onerror: () => void) => void;
|
|
|
|
- loadAsync: (scene: Scene, data: string, rootUrl: string, onsuccess: () => void, onerror: () => void) => void;
|
|
|
|
- canDirectLoad?: (data: string) => boolean;
|
|
|
|
- }
|
|
|
|
- class SceneLoader {
|
|
|
|
- private static _ForceFullSceneLoadingForIncremental;
|
|
|
|
- private static _ShowLoadingScreen;
|
|
|
|
- static readonly NO_LOGGING: number;
|
|
|
|
- static readonly MINIMAL_LOGGING: number;
|
|
|
|
- static readonly SUMMARY_LOGGING: number;
|
|
|
|
- static readonly DETAILED_LOGGING: number;
|
|
|
|
- private static _loggingLevel;
|
|
|
|
- static ForceFullSceneLoadingForIncremental: boolean;
|
|
|
|
- static ShowLoadingScreen: boolean;
|
|
|
|
- static loggingLevel: number;
|
|
|
|
- private static _registeredPlugins;
|
|
|
|
- private static _getDefaultPlugin();
|
|
|
|
- private static _getPluginForExtension(extension);
|
|
|
|
- private static _getPluginForDirectLoad(data);
|
|
|
|
- private static _getPluginForFilename(sceneFilename);
|
|
|
|
- private static _getDirectLoad(sceneFilename);
|
|
|
|
- static GetPluginForExtension(extension: string): ISceneLoaderPlugin | ISceneLoaderPluginAsync;
|
|
|
|
- static RegisterPlugin(plugin: ISceneLoaderPlugin | ISceneLoaderPluginAsync): void;
|
|
|
|
- static ImportMesh(meshesNames: any, rootUrl: string, sceneFilename: string, scene: Scene, onsuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, progressCallBack?: () => void, onerror?: (scene: Scene, message: string, exception?: 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 ShadowLight {
|
|
class DirectionalLight extends ShadowLight {
|
|
private _shadowOrthoScale;
|
|
private _shadowOrthoScale;
|
|
shadowOrthoScale: number;
|
|
shadowOrthoScale: number;
|
|
@@ -6029,6 +5974,61 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ interface ISceneLoaderPluginExtensions {
|
|
|
|
+ [extension: string]: {
|
|
|
|
+ isBinary: boolean;
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+ interface ISceneLoaderPlugin {
|
|
|
|
+ extensions: string | ISceneLoaderPluginExtensions;
|
|
|
|
+ importMesh: (meshesNames: any, scene: Scene, data: any, rootUrl: string, meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => boolean;
|
|
|
|
+ load: (scene: Scene, data: string, rootUrl: string) => boolean;
|
|
|
|
+ canDirectLoad?: (data: string) => boolean;
|
|
|
|
+ }
|
|
|
|
+ interface ISceneLoaderPluginAsync {
|
|
|
|
+ extensions: string | ISceneLoaderPluginExtensions;
|
|
|
|
+ importMeshAsync: (meshesNames: any, scene: Scene, data: any, rootUrl: string, onsuccess: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, onerror: () => void) => void;
|
|
|
|
+ loadAsync: (scene: Scene, data: string, rootUrl: string, onsuccess: () => void, onerror: () => void) => void;
|
|
|
|
+ canDirectLoad?: (data: string) => boolean;
|
|
|
|
+ }
|
|
|
|
+ class SceneLoader {
|
|
|
|
+ private static _ForceFullSceneLoadingForIncremental;
|
|
|
|
+ private static _ShowLoadingScreen;
|
|
|
|
+ static readonly NO_LOGGING: number;
|
|
|
|
+ static readonly MINIMAL_LOGGING: number;
|
|
|
|
+ static readonly SUMMARY_LOGGING: number;
|
|
|
|
+ static readonly DETAILED_LOGGING: number;
|
|
|
|
+ private static _loggingLevel;
|
|
|
|
+ static ForceFullSceneLoadingForIncremental: boolean;
|
|
|
|
+ static ShowLoadingScreen: boolean;
|
|
|
|
+ static loggingLevel: number;
|
|
|
|
+ private static _registeredPlugins;
|
|
|
|
+ private static _getDefaultPlugin();
|
|
|
|
+ private static _getPluginForExtension(extension);
|
|
|
|
+ private static _getPluginForDirectLoad(data);
|
|
|
|
+ private static _getPluginForFilename(sceneFilename);
|
|
|
|
+ private static _getDirectLoad(sceneFilename);
|
|
|
|
+ static GetPluginForExtension(extension: string): ISceneLoaderPlugin | ISceneLoaderPluginAsync;
|
|
|
|
+ static RegisterPlugin(plugin: ISceneLoaderPlugin | ISceneLoaderPluginAsync): void;
|
|
|
|
+ static ImportMesh(meshesNames: any, rootUrl: string, sceneFilename: string, scene: Scene, onsuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, progressCallBack?: () => void, onerror?: (scene: Scene, message: string, exception?: 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 {
|
|
/**
|
|
/**
|
|
* The color grading curves provide additional color adjustmnent that is applied after any color grading transform (3D LUT).
|
|
* The color grading curves provide additional color adjustmnent that is applied after any color grading transform (3D LUT).
|
|
* They allow basic adjustment of saturation and small exposure adjustments, along with color filter tinting to provide white balance adjustment or more stylistic effects.
|
|
* They allow basic adjustment of saturation and small exposure adjustments, along with color filter tinting to provide white balance adjustment or more stylistic effects.
|
|
@@ -9121,13 +9121,76 @@ declare module BABYLON {
|
|
constructor(position?: Vector3, normal?: Vector3, uv?: Vector2);
|
|
constructor(position?: Vector3, normal?: Vector3, uv?: Vector2);
|
|
clone(): PositionNormalTextureVertex;
|
|
clone(): PositionNormalTextureVertex;
|
|
}
|
|
}
|
|
- class Tmp {
|
|
|
|
- static Color3: Color3[];
|
|
|
|
- static Vector2: Vector2[];
|
|
|
|
- static Vector3: Vector3[];
|
|
|
|
- static Vector4: Vector4[];
|
|
|
|
- static Quaternion: Quaternion[];
|
|
|
|
- static Matrix: Matrix[];
|
|
|
|
|
|
+ class Tmp {
|
|
|
|
+ static Color3: Color3[];
|
|
|
|
+ static Vector2: Vector2[];
|
|
|
|
+ static Vector3: Vector3[];
|
|
|
|
+ static Vector4: Vector4[];
|
|
|
|
+ static Quaternion: Quaternion[];
|
|
|
|
+ static Matrix: Matrix[];
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class MorphTarget {
|
|
|
|
+ name: string;
|
|
|
|
+ animations: Animation[];
|
|
|
|
+ private _positions;
|
|
|
|
+ private _normals;
|
|
|
|
+ private _tangents;
|
|
|
|
+ private _influence;
|
|
|
|
+ onInfluenceChanged: Observable<boolean>;
|
|
|
|
+ influence: number;
|
|
|
|
+ constructor(name: string, influence?: number);
|
|
|
|
+ readonly hasNormals: boolean;
|
|
|
|
+ readonly hasTangents: boolean;
|
|
|
|
+ setPositions(data: Float32Array | number[]): void;
|
|
|
|
+ getPositions(): Float32Array;
|
|
|
|
+ setNormals(data: Float32Array | number[]): void;
|
|
|
|
+ getNormals(): Float32Array;
|
|
|
|
+ setTangents(data: Float32Array | number[]): void;
|
|
|
|
+ getTangents(): Float32Array;
|
|
|
|
+ /**
|
|
|
|
+ * Serializes the current target into a Serialization object.
|
|
|
|
+ * Returns the serialized object.
|
|
|
|
+ */
|
|
|
|
+ serialize(): any;
|
|
|
|
+ static Parse(serializationObject: any): MorphTarget;
|
|
|
|
+ static FromMesh(mesh: AbstractMesh, name?: string, influence?: number): MorphTarget;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class MorphTargetManager {
|
|
|
|
+ private _targets;
|
|
|
|
+ private _targetObservable;
|
|
|
|
+ private _activeTargets;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _influences;
|
|
|
|
+ private _supportsNormals;
|
|
|
|
+ private _supportsTangents;
|
|
|
|
+ private _vertexCount;
|
|
|
|
+ private _uniqueId;
|
|
|
|
+ constructor(scene?: Scene);
|
|
|
|
+ readonly uniqueId: number;
|
|
|
|
+ readonly vertexCount: number;
|
|
|
|
+ readonly supportsNormals: boolean;
|
|
|
|
+ readonly supportsTangents: boolean;
|
|
|
|
+ readonly numTargets: number;
|
|
|
|
+ readonly numInfluencers: number;
|
|
|
|
+ readonly influences: Float32Array;
|
|
|
|
+ getActiveTarget(index: number): MorphTarget;
|
|
|
|
+ getTarget(index: number): MorphTarget;
|
|
|
|
+ addTarget(target: MorphTarget): void;
|
|
|
|
+ removeTarget(target: MorphTarget): void;
|
|
|
|
+ /**
|
|
|
|
+ * Serializes the current manager into a Serialization object.
|
|
|
|
+ * Returns the serialized object.
|
|
|
|
+ */
|
|
|
|
+ serialize(): any;
|
|
|
|
+ private _onInfluenceChanged(needUpdate);
|
|
|
|
+ private _syncActiveTargets(needUpdate);
|
|
|
|
+ static Parse(serializationObject: any, scene: Scene): MorphTargetManager;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -12475,69 +12538,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class MorphTarget {
|
|
|
|
- name: string;
|
|
|
|
- animations: Animation[];
|
|
|
|
- private _positions;
|
|
|
|
- private _normals;
|
|
|
|
- private _tangents;
|
|
|
|
- private _influence;
|
|
|
|
- onInfluenceChanged: Observable<boolean>;
|
|
|
|
- influence: number;
|
|
|
|
- constructor(name: string, influence?: number);
|
|
|
|
- readonly hasNormals: boolean;
|
|
|
|
- readonly hasTangents: boolean;
|
|
|
|
- setPositions(data: Float32Array | number[]): void;
|
|
|
|
- getPositions(): Float32Array;
|
|
|
|
- setNormals(data: Float32Array | number[]): void;
|
|
|
|
- getNormals(): Float32Array;
|
|
|
|
- setTangents(data: Float32Array | number[]): void;
|
|
|
|
- getTangents(): Float32Array;
|
|
|
|
- /**
|
|
|
|
- * Serializes the current target into a Serialization object.
|
|
|
|
- * Returns the serialized object.
|
|
|
|
- */
|
|
|
|
- serialize(): any;
|
|
|
|
- static Parse(serializationObject: any): MorphTarget;
|
|
|
|
- static FromMesh(mesh: AbstractMesh, name?: string, influence?: number): MorphTarget;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class MorphTargetManager {
|
|
|
|
- private _targets;
|
|
|
|
- private _targetObservable;
|
|
|
|
- private _activeTargets;
|
|
|
|
- private _scene;
|
|
|
|
- private _influences;
|
|
|
|
- private _supportsNormals;
|
|
|
|
- private _supportsTangents;
|
|
|
|
- private _vertexCount;
|
|
|
|
- private _uniqueId;
|
|
|
|
- constructor(scene?: Scene);
|
|
|
|
- readonly uniqueId: number;
|
|
|
|
- readonly vertexCount: number;
|
|
|
|
- readonly supportsNormals: boolean;
|
|
|
|
- readonly supportsTangents: boolean;
|
|
|
|
- readonly numTargets: number;
|
|
|
|
- readonly numInfluencers: number;
|
|
|
|
- readonly influences: Float32Array;
|
|
|
|
- getActiveTarget(index: number): MorphTarget;
|
|
|
|
- getTarget(index: number): MorphTarget;
|
|
|
|
- addTarget(target: MorphTarget): void;
|
|
|
|
- removeTarget(target: MorphTarget): void;
|
|
|
|
- /**
|
|
|
|
- * Serializes the current manager into a Serialization object.
|
|
|
|
- * Returns the serialized object.
|
|
|
|
- */
|
|
|
|
- serialize(): any;
|
|
|
|
- private _onInfluenceChanged(needUpdate);
|
|
|
|
- private _syncActiveTargets(needUpdate);
|
|
|
|
- static Parse(serializationObject: any, scene: Scene): MorphTargetManager;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class Particle {
|
|
class Particle {
|
|
position: Vector3;
|
|
position: Vector3;
|
|
direction: Vector3;
|
|
direction: Vector3;
|
|
@@ -14402,6 +14402,76 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class Sprite {
|
|
|
|
+ name: string;
|
|
|
|
+ position: Vector3;
|
|
|
|
+ color: Color4;
|
|
|
|
+ width: number;
|
|
|
|
+ height: number;
|
|
|
|
+ angle: number;
|
|
|
|
+ cellIndex: number;
|
|
|
|
+ invertU: number;
|
|
|
|
+ invertV: number;
|
|
|
|
+ disposeWhenFinishedAnimating: boolean;
|
|
|
|
+ animations: Animation[];
|
|
|
|
+ isPickable: boolean;
|
|
|
|
+ actionManager: ActionManager;
|
|
|
|
+ private _animationStarted;
|
|
|
|
+ private _loopAnimation;
|
|
|
|
+ private _fromIndex;
|
|
|
|
+ private _toIndex;
|
|
|
|
+ private _delay;
|
|
|
|
+ private _direction;
|
|
|
|
+ private _frameCount;
|
|
|
|
+ private _manager;
|
|
|
|
+ private _time;
|
|
|
|
+ private _onAnimationEnd;
|
|
|
|
+ size: number;
|
|
|
|
+ constructor(name: string, manager: SpriteManager);
|
|
|
|
+ playAnimation(from: number, to: number, loop: boolean, delay: number, onAnimationEnd: () => void): void;
|
|
|
|
+ stopAnimation(): void;
|
|
|
|
+ _animate(deltaTime: number): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class SpriteManager {
|
|
|
|
+ name: string;
|
|
|
|
+ sprites: Sprite[];
|
|
|
|
+ renderingGroupId: number;
|
|
|
|
+ layerMask: number;
|
|
|
|
+ fogEnabled: boolean;
|
|
|
|
+ isPickable: boolean;
|
|
|
|
+ cellWidth: number;
|
|
|
|
+ cellHeight: number;
|
|
|
|
+ /**
|
|
|
|
+ * An event triggered when the manager is disposed.
|
|
|
|
+ * @type {BABYLON.Observable}
|
|
|
|
+ */
|
|
|
|
+ onDisposeObservable: Observable<SpriteManager>;
|
|
|
|
+ private _onDisposeObserver;
|
|
|
|
+ onDispose: () => void;
|
|
|
|
+ private _capacity;
|
|
|
|
+ private _spriteTexture;
|
|
|
|
+ private _epsilon;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _vertexData;
|
|
|
|
+ private _buffer;
|
|
|
|
+ private _vertexBuffers;
|
|
|
|
+ private _indexBuffer;
|
|
|
|
+ private _effectBase;
|
|
|
|
+ private _effectFog;
|
|
|
|
+ texture: Texture;
|
|
|
|
+ constructor(name: string, imgUrl: string, capacity: number, cellSize: any, scene: Scene, epsilon?: number, samplingMode?: number);
|
|
|
|
+ private _appendSpriteVertex(index, sprite, offsetX, offsetY, rowSize);
|
|
|
|
+ intersects(ray: Ray, camera: Camera, predicate?: (sprite: Sprite) => boolean, fastCheck?: boolean): PickingInfo;
|
|
|
|
+ render(): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
declare module BABYLON.Internals {
|
|
declare module BABYLON.Internals {
|
|
class _AlphaState {
|
|
class _AlphaState {
|
|
private _isAlphaBlendDirty;
|
|
private _isAlphaBlendDirty;
|
|
@@ -14485,76 +14555,6 @@ declare module BABYLON.Internals {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class Sprite {
|
|
|
|
- name: string;
|
|
|
|
- position: Vector3;
|
|
|
|
- color: Color4;
|
|
|
|
- width: number;
|
|
|
|
- height: number;
|
|
|
|
- angle: number;
|
|
|
|
- cellIndex: number;
|
|
|
|
- invertU: number;
|
|
|
|
- invertV: number;
|
|
|
|
- disposeWhenFinishedAnimating: boolean;
|
|
|
|
- animations: Animation[];
|
|
|
|
- isPickable: boolean;
|
|
|
|
- actionManager: ActionManager;
|
|
|
|
- private _animationStarted;
|
|
|
|
- private _loopAnimation;
|
|
|
|
- private _fromIndex;
|
|
|
|
- private _toIndex;
|
|
|
|
- private _delay;
|
|
|
|
- private _direction;
|
|
|
|
- private _frameCount;
|
|
|
|
- private _manager;
|
|
|
|
- private _time;
|
|
|
|
- private _onAnimationEnd;
|
|
|
|
- size: number;
|
|
|
|
- constructor(name: string, manager: SpriteManager);
|
|
|
|
- playAnimation(from: number, to: number, loop: boolean, delay: number, onAnimationEnd: () => void): void;
|
|
|
|
- stopAnimation(): void;
|
|
|
|
- _animate(deltaTime: number): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class SpriteManager {
|
|
|
|
- name: string;
|
|
|
|
- sprites: Sprite[];
|
|
|
|
- renderingGroupId: number;
|
|
|
|
- layerMask: number;
|
|
|
|
- fogEnabled: boolean;
|
|
|
|
- isPickable: boolean;
|
|
|
|
- cellWidth: number;
|
|
|
|
- cellHeight: number;
|
|
|
|
- /**
|
|
|
|
- * An event triggered when the manager is disposed.
|
|
|
|
- * @type {BABYLON.Observable}
|
|
|
|
- */
|
|
|
|
- onDisposeObservable: Observable<SpriteManager>;
|
|
|
|
- private _onDisposeObserver;
|
|
|
|
- onDispose: () => void;
|
|
|
|
- private _capacity;
|
|
|
|
- private _spriteTexture;
|
|
|
|
- private _epsilon;
|
|
|
|
- private _scene;
|
|
|
|
- private _vertexData;
|
|
|
|
- private _buffer;
|
|
|
|
- private _vertexBuffers;
|
|
|
|
- private _indexBuffer;
|
|
|
|
- private _effectBase;
|
|
|
|
- private _effectFog;
|
|
|
|
- texture: Texture;
|
|
|
|
- constructor(name: string, imgUrl: string, capacity: number, cellSize: any, scene: Scene, epsilon?: number, samplingMode?: number);
|
|
|
|
- private _appendSpriteVertex(index, sprite, offsetX, offsetY, rowSize);
|
|
|
|
- intersects(ray: Ray, camera: Camera, predicate?: (sprite: Sprite) => boolean, fastCheck?: boolean): PickingInfo;
|
|
|
|
- render(): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
declare module BABYLON.Internals {
|
|
declare module BABYLON.Internals {
|
|
class AndOrNotEvaluator {
|
|
class AndOrNotEvaluator {
|
|
static Eval(query: string, evaluateCallback: (val: any) => boolean): boolean;
|
|
static Eval(query: string, evaluateCallback: (val: any) => boolean): boolean;
|
|
@@ -16283,9 +16283,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-declare module BABYLON.Internals {
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
interface IShadowGenerator {
|
|
interface IShadowGenerator {
|
|
getShadowMap(): RenderTargetTexture;
|
|
getShadowMap(): RenderTargetTexture;
|
|
@@ -16418,6 +16415,9 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+declare module BABYLON.Internals {
|
|
|
|
+}
|
|
|
|
+
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
* The Physically based material base class of BJS.
|
|
* The Physically based material base class of BJS.
|