|
@@ -1901,91 +1901,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class Bone extends Node {
|
|
|
- name: string;
|
|
|
- children: Bone[];
|
|
|
- animations: Animation[];
|
|
|
- length: number;
|
|
|
- private _skeleton;
|
|
|
- _matrix: Matrix;
|
|
|
- private _restPose;
|
|
|
- private _baseMatrix;
|
|
|
- private _worldTransform;
|
|
|
- private _absoluteTransform;
|
|
|
- private _invertedAbsoluteTransform;
|
|
|
- private _parent;
|
|
|
- constructor(name: string, skeleton: Skeleton, parentBone: Bone, matrix: Matrix, restPose?: Matrix);
|
|
|
- getParent(): Bone;
|
|
|
- getLocalMatrix(): Matrix;
|
|
|
- getBaseMatrix(): Matrix;
|
|
|
- getRestPose(): Matrix;
|
|
|
- returnToRest(): void;
|
|
|
- getWorldMatrix(): Matrix;
|
|
|
- getInvertedAbsoluteTransform(): Matrix;
|
|
|
- getAbsoluteTransform(): Matrix;
|
|
|
- updateMatrix(matrix: Matrix): void;
|
|
|
- _updateDifferenceMatrix(rootMatrix?: Matrix): void;
|
|
|
- markAsDirty(): void;
|
|
|
- copyAnimationRange(source: Bone, rangeName: string, frameOffset: number, rescaleAsRequired?: boolean, skelDimensionsRatio?: Vector3): boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class Skeleton {
|
|
|
- name: string;
|
|
|
- id: string;
|
|
|
- bones: Bone[];
|
|
|
- dimensionsAtRest: Vector3;
|
|
|
- needInitialSkinMatrix: boolean;
|
|
|
- private _scene;
|
|
|
- private _isDirty;
|
|
|
- private _transformMatrices;
|
|
|
- private _meshesWithPoseMatrix;
|
|
|
- private _animatables;
|
|
|
- private _identity;
|
|
|
- private _ranges;
|
|
|
- constructor(name: string, id: string, scene: Scene);
|
|
|
- getTransformMatrices(mesh: AbstractMesh): Float32Array;
|
|
|
- getScene(): Scene;
|
|
|
- /**
|
|
|
- * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
|
|
|
- */
|
|
|
- toString(fullDetails?: boolean): string;
|
|
|
- /**
|
|
|
- * Get bone's index searching by name
|
|
|
- * @param {string} name is bone's name to search for
|
|
|
- * @return {number} Indice of the bone. Returns -1 if not found
|
|
|
- */
|
|
|
- getBoneIndexByName(name: string): number;
|
|
|
- createAnimationRange(name: string, from: number, to: number): void;
|
|
|
- deleteAnimationRange(name: string, deleteFrames?: boolean): void;
|
|
|
- getAnimationRange(name: string): AnimationRange;
|
|
|
- /**
|
|
|
- * Returns as an Array, all AnimationRanges defined on this skeleton
|
|
|
- */
|
|
|
- getAnimationRanges(): AnimationRange[];
|
|
|
- /**
|
|
|
- * note: This is not for a complete retargeting, only between very similar skeleton's with only possible bone length differences
|
|
|
- */
|
|
|
- copyAnimationRange(source: Skeleton, name: string, rescaleAsRequired?: boolean): boolean;
|
|
|
- returnToRest(): void;
|
|
|
- private _getHighestAnimationFrame();
|
|
|
- beginAnimation(name: string, loop?: boolean, speedRatio?: number, onAnimationEnd?: () => void): Animatable;
|
|
|
- _markAsDirty(): void;
|
|
|
- _registerMeshWithPoseMatrix(mesh: AbstractMesh): void;
|
|
|
- _unregisterMeshWithPoseMatrix(mesh: AbstractMesh): void;
|
|
|
- _computeTransformMatrices(targetMatrix: Float32Array, initialSkinMatrix: Matrix): void;
|
|
|
- prepare(): void;
|
|
|
- getAnimatables(): IAnimatable[];
|
|
|
- clone(name: string, id: string): Skeleton;
|
|
|
- enableBlending(blendingSpeed?: number): void;
|
|
|
- dispose(): void;
|
|
|
- serialize(): any;
|
|
|
- static Parse(parsedSkeleton: any, scene: Scene): Skeleton;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class ArcRotateCamera extends TargetCamera {
|
|
|
alpha: number;
|
|
|
beta: number;
|
|
@@ -2408,6 +2323,193 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class Bone extends Node {
|
|
|
+ name: string;
|
|
|
+ children: Bone[];
|
|
|
+ animations: Animation[];
|
|
|
+ length: number;
|
|
|
+ private _skeleton;
|
|
|
+ _matrix: Matrix;
|
|
|
+ private _restPose;
|
|
|
+ private _baseMatrix;
|
|
|
+ private _worldTransform;
|
|
|
+ private _absoluteTransform;
|
|
|
+ private _invertedAbsoluteTransform;
|
|
|
+ private _parent;
|
|
|
+ constructor(name: string, skeleton: Skeleton, parentBone: Bone, matrix: Matrix, restPose?: Matrix);
|
|
|
+ getParent(): Bone;
|
|
|
+ getLocalMatrix(): Matrix;
|
|
|
+ getBaseMatrix(): Matrix;
|
|
|
+ getRestPose(): Matrix;
|
|
|
+ returnToRest(): void;
|
|
|
+ getWorldMatrix(): Matrix;
|
|
|
+ getInvertedAbsoluteTransform(): Matrix;
|
|
|
+ getAbsoluteTransform(): Matrix;
|
|
|
+ updateMatrix(matrix: Matrix): void;
|
|
|
+ _updateDifferenceMatrix(rootMatrix?: Matrix): void;
|
|
|
+ markAsDirty(): void;
|
|
|
+ copyAnimationRange(source: Bone, rangeName: string, frameOffset: number, rescaleAsRequired?: boolean, skelDimensionsRatio?: Vector3): boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class Skeleton {
|
|
|
+ name: string;
|
|
|
+ id: string;
|
|
|
+ bones: Bone[];
|
|
|
+ dimensionsAtRest: Vector3;
|
|
|
+ needInitialSkinMatrix: boolean;
|
|
|
+ private _scene;
|
|
|
+ private _isDirty;
|
|
|
+ private _transformMatrices;
|
|
|
+ private _meshesWithPoseMatrix;
|
|
|
+ private _animatables;
|
|
|
+ private _identity;
|
|
|
+ private _ranges;
|
|
|
+ constructor(name: string, id: string, scene: Scene);
|
|
|
+ getTransformMatrices(mesh: AbstractMesh): Float32Array;
|
|
|
+ getScene(): Scene;
|
|
|
+ /**
|
|
|
+ * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
|
|
|
+ */
|
|
|
+ toString(fullDetails?: boolean): string;
|
|
|
+ /**
|
|
|
+ * Get bone's index searching by name
|
|
|
+ * @param {string} name is bone's name to search for
|
|
|
+ * @return {number} Indice of the bone. Returns -1 if not found
|
|
|
+ */
|
|
|
+ getBoneIndexByName(name: string): number;
|
|
|
+ createAnimationRange(name: string, from: number, to: number): void;
|
|
|
+ deleteAnimationRange(name: string, deleteFrames?: boolean): void;
|
|
|
+ getAnimationRange(name: string): AnimationRange;
|
|
|
+ /**
|
|
|
+ * Returns as an Array, all AnimationRanges defined on this skeleton
|
|
|
+ */
|
|
|
+ getAnimationRanges(): AnimationRange[];
|
|
|
+ /**
|
|
|
+ * note: This is not for a complete retargeting, only between very similar skeleton's with only possible bone length differences
|
|
|
+ */
|
|
|
+ copyAnimationRange(source: Skeleton, name: string, rescaleAsRequired?: boolean): boolean;
|
|
|
+ returnToRest(): void;
|
|
|
+ private _getHighestAnimationFrame();
|
|
|
+ beginAnimation(name: string, loop?: boolean, speedRatio?: number, onAnimationEnd?: () => void): Animatable;
|
|
|
+ _markAsDirty(): void;
|
|
|
+ _registerMeshWithPoseMatrix(mesh: AbstractMesh): void;
|
|
|
+ _unregisterMeshWithPoseMatrix(mesh: AbstractMesh): void;
|
|
|
+ _computeTransformMatrices(targetMatrix: Float32Array, initialSkinMatrix: Matrix): void;
|
|
|
+ prepare(): void;
|
|
|
+ getAnimatables(): IAnimatable[];
|
|
|
+ clone(name: string, id: string): Skeleton;
|
|
|
+ enableBlending(blendingSpeed?: number): void;
|
|
|
+ dispose(): void;
|
|
|
+ serialize(): any;
|
|
|
+ static Parse(parsedSkeleton: any, scene: Scene): Skeleton;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class BoundingBox {
|
|
|
+ minimum: Vector3;
|
|
|
+ maximum: Vector3;
|
|
|
+ vectors: Vector3[];
|
|
|
+ center: Vector3;
|
|
|
+ extendSize: Vector3;
|
|
|
+ directions: Vector3[];
|
|
|
+ vectorsWorld: Vector3[];
|
|
|
+ minimumWorld: Vector3;
|
|
|
+ maximumWorld: Vector3;
|
|
|
+ private _worldMatrix;
|
|
|
+ constructor(minimum: Vector3, maximum: Vector3);
|
|
|
+ getWorldMatrix(): Matrix;
|
|
|
+ setWorldMatrix(matrix: Matrix): BoundingBox;
|
|
|
+ _update(world: Matrix): void;
|
|
|
+ isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
+ isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
+ intersectsPoint(point: Vector3): boolean;
|
|
|
+ intersectsSphere(sphere: BoundingSphere): boolean;
|
|
|
+ intersectsMinMax(min: Vector3, max: Vector3): boolean;
|
|
|
+ static Intersects(box0: BoundingBox, box1: BoundingBox): boolean;
|
|
|
+ static IntersectsSphere(minPoint: Vector3, maxPoint: Vector3, sphereCenter: Vector3, sphereRadius: number): boolean;
|
|
|
+ static IsCompletelyInFrustum(boundingVectors: Vector3[], frustumPlanes: Plane[]): boolean;
|
|
|
+ static IsInFrustum(boundingVectors: Vector3[], frustumPlanes: Plane[]): boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class BoundingInfo {
|
|
|
+ minimum: Vector3;
|
|
|
+ maximum: Vector3;
|
|
|
+ boundingBox: BoundingBox;
|
|
|
+ boundingSphere: BoundingSphere;
|
|
|
+ private _isLocked;
|
|
|
+ constructor(minimum: Vector3, maximum: Vector3);
|
|
|
+ isLocked: boolean;
|
|
|
+ update(world: Matrix): void;
|
|
|
+ isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
+ isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
+ _checkCollision(collider: Collider): boolean;
|
|
|
+ intersectsPoint(point: Vector3): boolean;
|
|
|
+ intersects(boundingInfo: BoundingInfo, precise: boolean): boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class BoundingSphere {
|
|
|
+ minimum: Vector3;
|
|
|
+ maximum: Vector3;
|
|
|
+ center: Vector3;
|
|
|
+ radius: number;
|
|
|
+ centerWorld: Vector3;
|
|
|
+ radiusWorld: number;
|
|
|
+ private _tempRadiusVector;
|
|
|
+ constructor(minimum: Vector3, maximum: Vector3);
|
|
|
+ _update(world: Matrix): void;
|
|
|
+ isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
+ intersectsPoint(point: Vector3): boolean;
|
|
|
+ static Intersects(sphere0: BoundingSphere, sphere1: BoundingSphere): boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class Ray {
|
|
|
+ origin: Vector3;
|
|
|
+ direction: Vector3;
|
|
|
+ length: number;
|
|
|
+ private _edge1;
|
|
|
+ private _edge2;
|
|
|
+ private _pvec;
|
|
|
+ private _tvec;
|
|
|
+ private _qvec;
|
|
|
+ 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;
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
/**
|
|
|
* Stores 2D Bounding Information.
|
|
|
* This class handles a circle area and a bounding rectangle one.
|
|
@@ -4977,6 +5079,7 @@ declare module BABYLON {
|
|
|
sizeUV: Vector2;
|
|
|
textureSize: Vector2;
|
|
|
color: Color4;
|
|
|
+ superSampleFactor: number;
|
|
|
}
|
|
|
class Text2D extends RenderablePrim2D {
|
|
|
static TEXT2D_MAINPARTID: number;
|
|
@@ -5014,6 +5117,7 @@ declare module BABYLON {
|
|
|
* - scale: the initial scale of the primitive. default is 1
|
|
|
* - origin: define the normalized origin point location, default [0.5;0.5]
|
|
|
* - fontName: the name/size/style of the font to use, following the CSS notation. Default is "12pt Arial".
|
|
|
+ * - fontSuperSample: if true the text will be rendered with a superSampled font (the font is twice the given size). Use this settings if the text lies in world space or if it's scaled in.
|
|
|
* - defaultColor: the color by default to apply on each letter of the text to display, default is plain white.
|
|
|
* - areaSize: the size of the area in which to display the text, default is auto-fit from text content.
|
|
|
* - tabulationSize: number of space character to insert when a tabulation is encountered, default is 4
|
|
@@ -5043,6 +5147,7 @@ declare module BABYLON {
|
|
|
scale?: number;
|
|
|
origin?: Vector2;
|
|
|
fontName?: string;
|
|
|
+ fontSuperSample?: boolean;
|
|
|
defaultFontColor?: Color4;
|
|
|
size?: Size;
|
|
|
tabulationSize?: number;
|
|
@@ -5073,6 +5178,7 @@ declare module BABYLON {
|
|
|
private _tabulationSize;
|
|
|
private _charCount;
|
|
|
private _fontName;
|
|
|
+ private _fontSuperSample;
|
|
|
private _defaultFontColor;
|
|
|
private _text;
|
|
|
private _textSize;
|
|
@@ -5332,108 +5438,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class BoundingBox {
|
|
|
- minimum: Vector3;
|
|
|
- maximum: Vector3;
|
|
|
- vectors: Vector3[];
|
|
|
- center: Vector3;
|
|
|
- extendSize: Vector3;
|
|
|
- directions: Vector3[];
|
|
|
- vectorsWorld: Vector3[];
|
|
|
- minimumWorld: Vector3;
|
|
|
- maximumWorld: Vector3;
|
|
|
- private _worldMatrix;
|
|
|
- constructor(minimum: Vector3, maximum: Vector3);
|
|
|
- getWorldMatrix(): Matrix;
|
|
|
- setWorldMatrix(matrix: Matrix): BoundingBox;
|
|
|
- _update(world: Matrix): void;
|
|
|
- isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
- isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
- intersectsPoint(point: Vector3): boolean;
|
|
|
- intersectsSphere(sphere: BoundingSphere): boolean;
|
|
|
- intersectsMinMax(min: Vector3, max: Vector3): boolean;
|
|
|
- static Intersects(box0: BoundingBox, box1: BoundingBox): boolean;
|
|
|
- static IntersectsSphere(minPoint: Vector3, maxPoint: Vector3, sphereCenter: Vector3, sphereRadius: number): boolean;
|
|
|
- static IsCompletelyInFrustum(boundingVectors: Vector3[], frustumPlanes: Plane[]): boolean;
|
|
|
- static IsInFrustum(boundingVectors: Vector3[], frustumPlanes: Plane[]): boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class BoundingInfo {
|
|
|
- minimum: Vector3;
|
|
|
- maximum: Vector3;
|
|
|
- boundingBox: BoundingBox;
|
|
|
- boundingSphere: BoundingSphere;
|
|
|
- private _isLocked;
|
|
|
- constructor(minimum: Vector3, maximum: Vector3);
|
|
|
- isLocked: boolean;
|
|
|
- update(world: Matrix): void;
|
|
|
- isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
- isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
- _checkCollision(collider: Collider): boolean;
|
|
|
- intersectsPoint(point: Vector3): boolean;
|
|
|
- intersects(boundingInfo: BoundingInfo, precise: boolean): boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class BoundingSphere {
|
|
|
- minimum: Vector3;
|
|
|
- maximum: Vector3;
|
|
|
- center: Vector3;
|
|
|
- radius: number;
|
|
|
- centerWorld: Vector3;
|
|
|
- radiusWorld: number;
|
|
|
- private _tempRadiusVector;
|
|
|
- constructor(minimum: Vector3, maximum: Vector3);
|
|
|
- _update(world: Matrix): void;
|
|
|
- isInFrustum(frustumPlanes: Plane[]): boolean;
|
|
|
- intersectsPoint(point: Vector3): boolean;
|
|
|
- static Intersects(sphere0: BoundingSphere, sphere1: BoundingSphere): boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class Ray {
|
|
|
- origin: Vector3;
|
|
|
- direction: Vector3;
|
|
|
- length: number;
|
|
|
- private _edge1;
|
|
|
- private _edge2;
|
|
|
- private _pvec;
|
|
|
- private _tvec;
|
|
|
- private _qvec;
|
|
|
- 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;
|
|
|
- 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;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class DebugLayer {
|
|
|
private _scene;
|
|
|
private _camera;
|
|
@@ -5561,49 +5565,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class LensFlare {
|
|
|
- size: number;
|
|
|
- position: number;
|
|
|
- color: Color3;
|
|
|
- texture: Texture;
|
|
|
- private _system;
|
|
|
- constructor(size: number, position: number, color: any, imgUrl: string, system: LensFlareSystem);
|
|
|
- dispose: () => void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class LensFlareSystem {
|
|
|
- name: string;
|
|
|
- lensFlares: LensFlare[];
|
|
|
- borderLimit: number;
|
|
|
- meshesSelectionPredicate: (mesh: Mesh) => boolean;
|
|
|
- layerMask: number;
|
|
|
- id: string;
|
|
|
- private _scene;
|
|
|
- private _emitter;
|
|
|
- private _vertexBuffers;
|
|
|
- private _indexBuffer;
|
|
|
- private _effect;
|
|
|
- private _positionX;
|
|
|
- private _positionY;
|
|
|
- private _isEnabled;
|
|
|
- constructor(name: string, emitter: any, scene: Scene);
|
|
|
- isEnabled: boolean;
|
|
|
- getScene(): Scene;
|
|
|
- getEmitter(): any;
|
|
|
- setEmitter(newEmitter: any): void;
|
|
|
- getEmitterPosition(): Vector3;
|
|
|
- computeEffectivePosition(globalViewport: Viewport): boolean;
|
|
|
- _isVisible(): boolean;
|
|
|
- render(): boolean;
|
|
|
- dispose(): void;
|
|
|
- static Parse(parsedLensFlareSystem: any, scene: Scene, rootUrl: string): LensFlareSystem;
|
|
|
- serialize(): any;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class DirectionalLight extends Light implements IShadowLight {
|
|
|
position: Vector3;
|
|
|
direction: Vector3;
|
|
@@ -5738,6 +5699,49 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class LensFlare {
|
|
|
+ size: number;
|
|
|
+ position: number;
|
|
|
+ color: Color3;
|
|
|
+ texture: Texture;
|
|
|
+ private _system;
|
|
|
+ constructor(size: number, position: number, color: any, imgUrl: string, system: LensFlareSystem);
|
|
|
+ dispose: () => void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class LensFlareSystem {
|
|
|
+ name: string;
|
|
|
+ lensFlares: LensFlare[];
|
|
|
+ borderLimit: number;
|
|
|
+ meshesSelectionPredicate: (mesh: Mesh) => boolean;
|
|
|
+ layerMask: number;
|
|
|
+ id: string;
|
|
|
+ private _scene;
|
|
|
+ private _emitter;
|
|
|
+ private _vertexBuffers;
|
|
|
+ private _indexBuffer;
|
|
|
+ private _effect;
|
|
|
+ private _positionX;
|
|
|
+ private _positionY;
|
|
|
+ private _isEnabled;
|
|
|
+ constructor(name: string, emitter: any, scene: Scene);
|
|
|
+ isEnabled: boolean;
|
|
|
+ getScene(): Scene;
|
|
|
+ getEmitter(): any;
|
|
|
+ setEmitter(newEmitter: any): void;
|
|
|
+ getEmitterPosition(): Vector3;
|
|
|
+ computeEffectivePosition(globalViewport: Viewport): boolean;
|
|
|
+ _isVisible(): boolean;
|
|
|
+ render(): boolean;
|
|
|
+ dispose(): void;
|
|
|
+ static Parse(parsedLensFlareSystem: any, scene: Scene, rootUrl: string): LensFlareSystem;
|
|
|
+ serialize(): any;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
interface ISceneLoaderPlugin {
|
|
|
extensions: string;
|
|
|
importMesh: (meshesNames: any, scene: Scene, data: any, rootUrl: string, meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => boolean;
|
|
@@ -10484,28 +10488,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class ReflectionProbe {
|
|
|
- name: string;
|
|
|
- private _scene;
|
|
|
- private _renderTargetTexture;
|
|
|
- private _projectionMatrix;
|
|
|
- private _viewMatrix;
|
|
|
- private _target;
|
|
|
- private _add;
|
|
|
- private _attachedMesh;
|
|
|
- invertYAxis: boolean;
|
|
|
- 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 {
|
|
|
private _passedProcess;
|
|
|
constructor(name: string, options: number | PostProcessOptions, rigCameras: Camera[], samplingMode?: number, engine?: Engine, reusable?: boolean);
|
|
@@ -11122,6 +11104,28 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class ReflectionProbe {
|
|
|
+ name: string;
|
|
|
+ private _scene;
|
|
|
+ private _renderTargetTexture;
|
|
|
+ private _projectionMatrix;
|
|
|
+ private _viewMatrix;
|
|
|
+ private _target;
|
|
|
+ private _add;
|
|
|
+ private _attachedMesh;
|
|
|
+ invertYAxis: boolean;
|
|
|
+ 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 {
|
|
|
frontColor: Color3;
|
|
|
backColor: Color3;
|
|
@@ -12891,17 +12895,21 @@ declare module BABYLON {
|
|
|
private _canvas;
|
|
|
private _context;
|
|
|
private _lineHeight;
|
|
|
+ private _lineHeightSuper;
|
|
|
private _offset;
|
|
|
private _currentFreePosition;
|
|
|
private _charInfos;
|
|
|
private _curCharCount;
|
|
|
private _lastUpdateCharCount;
|
|
|
private _spaceWidth;
|
|
|
+ private _spaceWidthSuper;
|
|
|
private _usedCounter;
|
|
|
+ private _superSample;
|
|
|
+ isSuperSampled: boolean;
|
|
|
spaceWidth: number;
|
|
|
lineHeight: number;
|
|
|
- static GetCachedFontTexture(scene: Scene, fontName: string): FontTexture;
|
|
|
- static ReleaseCachedFontTexture(scene: Scene, fontName: string): void;
|
|
|
+ static GetCachedFontTexture(scene: Scene, fontName: string, supersample?: boolean): FontTexture;
|
|
|
+ static ReleaseCachedFontTexture(scene: Scene, fontName: string, supersample?: boolean): void;
|
|
|
/**
|
|
|
* Create a new instance of the FontTexture class
|
|
|
* @param name the name of the texture
|
|
@@ -12909,8 +12917,9 @@ declare module BABYLON {
|
|
|
* @param scene the scene that owns the texture
|
|
|
* @param maxCharCount the approximative maximum count of characters that could fit in the texture. This is an approximation because most of the fonts are proportional (each char has its own Width). The 'W' character's width is used to compute the size of the texture based on the given maxCharCount
|
|
|
* @param samplingMode the texture sampling mode
|
|
|
+ * @param superSample if true the FontTexture will be created with a font of a size twice bigger than the given one but all properties (lineHeight, charWidth, etc.) will be according to the original size. This is made to improve the text quality.
|
|
|
*/
|
|
|
- constructor(name: string, font: string, scene: Scene, maxCharCount?: number, samplingMode?: number);
|
|
|
+ constructor(name: string, font: string, scene: Scene, maxCharCount?: number, samplingMode?: number, superSample?: boolean);
|
|
|
/**
|
|
|
* Make sure the given char is present in the font map.
|
|
|
* @param char the character to get or add
|
|
@@ -12918,6 +12927,7 @@ declare module BABYLON {
|
|
|
*/
|
|
|
getChar(char: string): CharInfo;
|
|
|
measureText(text: string, tabulationSize?: number): Size;
|
|
|
+ private getSuperSampleFont(font);
|
|
|
private getFontHeight(font);
|
|
|
canRescale: boolean;
|
|
|
getContext(): CanvasRenderingContext2D;
|