|
@@ -1196,6 +1196,169 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ class Animatable {
|
|
|
|
+ target: any;
|
|
|
|
+ fromFrame: number;
|
|
|
|
+ toFrame: number;
|
|
|
|
+ loopAnimation: boolean;
|
|
|
|
+ speedRatio: number;
|
|
|
|
+ onAnimationEnd: any;
|
|
|
|
+ private _localDelayOffset;
|
|
|
|
+ private _pausedDelay;
|
|
|
|
+ private _animations;
|
|
|
|
+ private _paused;
|
|
|
|
+ private _scene;
|
|
|
|
+ animationStarted: boolean;
|
|
|
|
+ constructor(scene: Scene, target: any, fromFrame?: number, toFrame?: number, loopAnimation?: boolean, speedRatio?: number, onAnimationEnd?: any, animations?: any);
|
|
|
|
+ getAnimations(): Animation[];
|
|
|
|
+ appendAnimations(target: any, animations: Animation[]): void;
|
|
|
|
+ getAnimationByTargetProperty(property: string): Animation;
|
|
|
|
+ reset(): void;
|
|
|
|
+ pause(): void;
|
|
|
|
+ restart(): void;
|
|
|
|
+ stop(): void;
|
|
|
|
+ _animate(delay: number): boolean;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class AnimationRange {
|
|
|
|
+ name: string;
|
|
|
|
+ from: number;
|
|
|
|
+ to: number;
|
|
|
|
+ constructor(name: string, from: number, to: number);
|
|
|
|
+ }
|
|
|
|
+ class Animation {
|
|
|
|
+ name: string;
|
|
|
|
+ targetProperty: string;
|
|
|
|
+ framePerSecond: number;
|
|
|
|
+ dataType: number;
|
|
|
|
+ loopMode: number;
|
|
|
|
+ private _keys;
|
|
|
|
+ private _offsetsCache;
|
|
|
|
+ private _highLimitsCache;
|
|
|
|
+ private _stopped;
|
|
|
|
+ _target: any;
|
|
|
|
+ private _easingFunction;
|
|
|
|
+ targetPropertyPath: string[];
|
|
|
|
+ currentFrame: number;
|
|
|
|
+ allowMatricesInterpolation: boolean;
|
|
|
|
+ private _ranges;
|
|
|
|
+ static CreateAndStartAnimation(name: string, mesh: AbstractMesh, targetProperty: string, framePerSecond: number, totalFrame: number, from: any, to: any, loopMode?: number, easingFunction?: EasingFunction, onAnimationEnd?: () => void): Animatable;
|
|
|
|
+ constructor(name: string, targetProperty: string, framePerSecond: number, dataType: number, loopMode?: number);
|
|
|
|
+ createRange(name: string, from: number, to: number): void;
|
|
|
|
+ deleteRange(name: string): void;
|
|
|
|
+ getRange(name: string): AnimationRange;
|
|
|
|
+ reset(): void;
|
|
|
|
+ isStopped(): boolean;
|
|
|
|
+ getKeys(): any[];
|
|
|
|
+ getEasingFunction(): IEasingFunction;
|
|
|
|
+ setEasingFunction(easingFunction: EasingFunction): void;
|
|
|
|
+ floatInterpolateFunction(startValue: number, endValue: number, gradient: number): number;
|
|
|
|
+ quaternionInterpolateFunction(startValue: Quaternion, endValue: Quaternion, gradient: number): Quaternion;
|
|
|
|
+ vector3InterpolateFunction(startValue: Vector3, endValue: Vector3, gradient: number): Vector3;
|
|
|
|
+ vector2InterpolateFunction(startValue: Vector2, endValue: Vector2, gradient: number): Vector2;
|
|
|
|
+ color3InterpolateFunction(startValue: Color3, endValue: Color3, gradient: number): Color3;
|
|
|
|
+ matrixInterpolateFunction(startValue: Matrix, endValue: Matrix, gradient: number): Matrix;
|
|
|
|
+ clone(): Animation;
|
|
|
|
+ setKeys(values: Array<any>): void;
|
|
|
|
+ private _getKeyValue(value);
|
|
|
|
+ private _interpolate(currentFrame, repeatCount, loopMode, offsetValue?, highLimitValue?);
|
|
|
|
+ animate(delay: number, from: number, to: number, loop: boolean, speedRatio: number): boolean;
|
|
|
|
+ private static _ANIMATIONTYPE_FLOAT;
|
|
|
|
+ private static _ANIMATIONTYPE_VECTOR3;
|
|
|
|
+ private static _ANIMATIONTYPE_QUATERNION;
|
|
|
|
+ private static _ANIMATIONTYPE_MATRIX;
|
|
|
|
+ private static _ANIMATIONTYPE_COLOR3;
|
|
|
|
+ private static _ANIMATIONTYPE_VECTOR2;
|
|
|
|
+ private static _ANIMATIONLOOPMODE_RELATIVE;
|
|
|
|
+ private static _ANIMATIONLOOPMODE_CYCLE;
|
|
|
|
+ private static _ANIMATIONLOOPMODE_CONSTANT;
|
|
|
|
+ static ANIMATIONTYPE_FLOAT: number;
|
|
|
|
+ static ANIMATIONTYPE_VECTOR3: number;
|
|
|
|
+ static ANIMATIONTYPE_VECTOR2: number;
|
|
|
|
+ static ANIMATIONTYPE_QUATERNION: number;
|
|
|
|
+ static ANIMATIONTYPE_MATRIX: number;
|
|
|
|
+ static ANIMATIONTYPE_COLOR3: number;
|
|
|
|
+ static ANIMATIONLOOPMODE_RELATIVE: number;
|
|
|
|
+ static ANIMATIONLOOPMODE_CYCLE: number;
|
|
|
|
+ static ANIMATIONLOOPMODE_CONSTANT: number;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ interface IEasingFunction {
|
|
|
|
+ ease(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class EasingFunction implements IEasingFunction {
|
|
|
|
+ private static _EASINGMODE_EASEIN;
|
|
|
|
+ private static _EASINGMODE_EASEOUT;
|
|
|
|
+ private static _EASINGMODE_EASEINOUT;
|
|
|
|
+ static EASINGMODE_EASEIN: number;
|
|
|
|
+ static EASINGMODE_EASEOUT: number;
|
|
|
|
+ static EASINGMODE_EASEINOUT: number;
|
|
|
|
+ private _easingMode;
|
|
|
|
+ setEasingMode(easingMode: number): void;
|
|
|
|
+ getEasingMode(): number;
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ ease(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class CircleEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class BackEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ amplitude: number;
|
|
|
|
+ constructor(amplitude?: number);
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class BounceEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ bounces: number;
|
|
|
|
+ bounciness: number;
|
|
|
|
+ constructor(bounces?: number, bounciness?: number);
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class CubicEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class ElasticEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ oscillations: number;
|
|
|
|
+ springiness: number;
|
|
|
|
+ constructor(oscillations?: number, springiness?: number);
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class ExponentialEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ exponent: number;
|
|
|
|
+ constructor(exponent?: number);
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class PowerEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ power: number;
|
|
|
|
+ constructor(power?: number);
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class QuadraticEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class QuarticEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class QuinticEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class SineEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+ class BezierCurveEase extends EasingFunction implements IEasingFunction {
|
|
|
|
+ x1: number;
|
|
|
|
+ y1: number;
|
|
|
|
+ x2: number;
|
|
|
|
+ y2: number;
|
|
|
|
+ constructor(x1?: number, y1?: number, x2?: number, y2?: number);
|
|
|
|
+ easeInCore(gradient: number): number;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
class Analyser {
|
|
class Analyser {
|
|
SMOOTHING: number;
|
|
SMOOTHING: number;
|
|
FFT_SIZE: number;
|
|
FFT_SIZE: number;
|
|
@@ -1362,169 +1525,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class Animatable {
|
|
|
|
- target: any;
|
|
|
|
- fromFrame: number;
|
|
|
|
- toFrame: number;
|
|
|
|
- loopAnimation: boolean;
|
|
|
|
- speedRatio: number;
|
|
|
|
- onAnimationEnd: any;
|
|
|
|
- private _localDelayOffset;
|
|
|
|
- private _pausedDelay;
|
|
|
|
- private _animations;
|
|
|
|
- private _paused;
|
|
|
|
- private _scene;
|
|
|
|
- animationStarted: boolean;
|
|
|
|
- constructor(scene: Scene, target: any, fromFrame?: number, toFrame?: number, loopAnimation?: boolean, speedRatio?: number, onAnimationEnd?: any, animations?: any);
|
|
|
|
- getAnimations(): Animation[];
|
|
|
|
- appendAnimations(target: any, animations: Animation[]): void;
|
|
|
|
- getAnimationByTargetProperty(property: string): Animation;
|
|
|
|
- reset(): void;
|
|
|
|
- pause(): void;
|
|
|
|
- restart(): void;
|
|
|
|
- stop(): void;
|
|
|
|
- _animate(delay: number): boolean;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class AnimationRange {
|
|
|
|
- name: string;
|
|
|
|
- from: number;
|
|
|
|
- to: number;
|
|
|
|
- constructor(name: string, from: number, to: number);
|
|
|
|
- }
|
|
|
|
- class Animation {
|
|
|
|
- name: string;
|
|
|
|
- targetProperty: string;
|
|
|
|
- framePerSecond: number;
|
|
|
|
- dataType: number;
|
|
|
|
- loopMode: number;
|
|
|
|
- private _keys;
|
|
|
|
- private _offsetsCache;
|
|
|
|
- private _highLimitsCache;
|
|
|
|
- private _stopped;
|
|
|
|
- _target: any;
|
|
|
|
- private _easingFunction;
|
|
|
|
- targetPropertyPath: string[];
|
|
|
|
- currentFrame: number;
|
|
|
|
- allowMatricesInterpolation: boolean;
|
|
|
|
- private _ranges;
|
|
|
|
- static CreateAndStartAnimation(name: string, mesh: AbstractMesh, targetProperty: string, framePerSecond: number, totalFrame: number, from: any, to: any, loopMode?: number, easingFunction?: EasingFunction, onAnimationEnd?: () => void): Animatable;
|
|
|
|
- constructor(name: string, targetProperty: string, framePerSecond: number, dataType: number, loopMode?: number);
|
|
|
|
- createRange(name: string, from: number, to: number): void;
|
|
|
|
- deleteRange(name: string): void;
|
|
|
|
- getRange(name: string): AnimationRange;
|
|
|
|
- reset(): void;
|
|
|
|
- isStopped(): boolean;
|
|
|
|
- getKeys(): any[];
|
|
|
|
- getEasingFunction(): IEasingFunction;
|
|
|
|
- setEasingFunction(easingFunction: EasingFunction): void;
|
|
|
|
- floatInterpolateFunction(startValue: number, endValue: number, gradient: number): number;
|
|
|
|
- quaternionInterpolateFunction(startValue: Quaternion, endValue: Quaternion, gradient: number): Quaternion;
|
|
|
|
- vector3InterpolateFunction(startValue: Vector3, endValue: Vector3, gradient: number): Vector3;
|
|
|
|
- vector2InterpolateFunction(startValue: Vector2, endValue: Vector2, gradient: number): Vector2;
|
|
|
|
- color3InterpolateFunction(startValue: Color3, endValue: Color3, gradient: number): Color3;
|
|
|
|
- matrixInterpolateFunction(startValue: Matrix, endValue: Matrix, gradient: number): Matrix;
|
|
|
|
- clone(): Animation;
|
|
|
|
- setKeys(values: Array<any>): void;
|
|
|
|
- private _getKeyValue(value);
|
|
|
|
- private _interpolate(currentFrame, repeatCount, loopMode, offsetValue?, highLimitValue?);
|
|
|
|
- animate(delay: number, from: number, to: number, loop: boolean, speedRatio: number): boolean;
|
|
|
|
- private static _ANIMATIONTYPE_FLOAT;
|
|
|
|
- private static _ANIMATIONTYPE_VECTOR3;
|
|
|
|
- private static _ANIMATIONTYPE_QUATERNION;
|
|
|
|
- private static _ANIMATIONTYPE_MATRIX;
|
|
|
|
- private static _ANIMATIONTYPE_COLOR3;
|
|
|
|
- private static _ANIMATIONTYPE_VECTOR2;
|
|
|
|
- private static _ANIMATIONLOOPMODE_RELATIVE;
|
|
|
|
- private static _ANIMATIONLOOPMODE_CYCLE;
|
|
|
|
- private static _ANIMATIONLOOPMODE_CONSTANT;
|
|
|
|
- static ANIMATIONTYPE_FLOAT: number;
|
|
|
|
- static ANIMATIONTYPE_VECTOR3: number;
|
|
|
|
- static ANIMATIONTYPE_VECTOR2: number;
|
|
|
|
- static ANIMATIONTYPE_QUATERNION: number;
|
|
|
|
- static ANIMATIONTYPE_MATRIX: number;
|
|
|
|
- static ANIMATIONTYPE_COLOR3: number;
|
|
|
|
- static ANIMATIONLOOPMODE_RELATIVE: number;
|
|
|
|
- static ANIMATIONLOOPMODE_CYCLE: number;
|
|
|
|
- static ANIMATIONLOOPMODE_CONSTANT: number;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- interface IEasingFunction {
|
|
|
|
- ease(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class EasingFunction implements IEasingFunction {
|
|
|
|
- private static _EASINGMODE_EASEIN;
|
|
|
|
- private static _EASINGMODE_EASEOUT;
|
|
|
|
- private static _EASINGMODE_EASEINOUT;
|
|
|
|
- static EASINGMODE_EASEIN: number;
|
|
|
|
- static EASINGMODE_EASEOUT: number;
|
|
|
|
- static EASINGMODE_EASEINOUT: number;
|
|
|
|
- private _easingMode;
|
|
|
|
- setEasingMode(easingMode: number): void;
|
|
|
|
- getEasingMode(): number;
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- ease(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class CircleEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class BackEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- amplitude: number;
|
|
|
|
- constructor(amplitude?: number);
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class BounceEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- bounces: number;
|
|
|
|
- bounciness: number;
|
|
|
|
- constructor(bounces?: number, bounciness?: number);
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class CubicEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class ElasticEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- oscillations: number;
|
|
|
|
- springiness: number;
|
|
|
|
- constructor(oscillations?: number, springiness?: number);
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class ExponentialEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- exponent: number;
|
|
|
|
- constructor(exponent?: number);
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class PowerEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- power: number;
|
|
|
|
- constructor(power?: number);
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class QuadraticEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class QuarticEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class QuinticEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class SineEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
- class BezierCurveEase extends EasingFunction implements IEasingFunction {
|
|
|
|
- x1: number;
|
|
|
|
- y1: number;
|
|
|
|
- x2: number;
|
|
|
|
- y2: number;
|
|
|
|
- constructor(x1?: number, y1?: number, x2?: number, y2?: number);
|
|
|
|
- easeInCore(gradient: number): number;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class Bone extends Node {
|
|
class Bone extends Node {
|
|
name: string;
|
|
name: string;
|
|
children: Bone[];
|
|
children: Bone[];
|
|
@@ -2267,25 +2267,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class Layer {
|
|
|
|
- name: string;
|
|
|
|
- texture: Texture;
|
|
|
|
- isBackground: boolean;
|
|
|
|
- color: Color4;
|
|
|
|
- onDispose: () => void;
|
|
|
|
- private _scene;
|
|
|
|
- private _vertexDeclaration;
|
|
|
|
- private _vertexStrideSize;
|
|
|
|
- private _vertexBuffer;
|
|
|
|
- private _indexBuffer;
|
|
|
|
- private _effect;
|
|
|
|
- constructor(name: string, imgUrl: string, scene: Scene, isBackground?: boolean, color?: Color4);
|
|
|
|
- render(): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class DebugLayer {
|
|
class DebugLayer {
|
|
private _scene;
|
|
private _scene;
|
|
private _camera;
|
|
private _camera;
|
|
@@ -2343,6 +2324,25 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ class Layer {
|
|
|
|
+ name: string;
|
|
|
|
+ texture: Texture;
|
|
|
|
+ isBackground: boolean;
|
|
|
|
+ color: Color4;
|
|
|
|
+ onDispose: () => void;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _vertexDeclaration;
|
|
|
|
+ private _vertexStrideSize;
|
|
|
|
+ private _vertexBuffer;
|
|
|
|
+ private _indexBuffer;
|
|
|
|
+ private _effect;
|
|
|
|
+ constructor(name: string, imgUrl: string, scene: Scene, isBackground?: boolean, color?: Color4);
|
|
|
|
+ render(): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
class LensFlare {
|
|
class LensFlare {
|
|
size: number;
|
|
size: number;
|
|
position: number;
|
|
position: number;
|
|
@@ -2760,7 +2760,7 @@ declare module BABYLON {
|
|
useSpecularOverAlpha: boolean;
|
|
useSpecularOverAlpha: boolean;
|
|
disableLighting: boolean;
|
|
disableLighting: boolean;
|
|
roughness: number;
|
|
roughness: number;
|
|
- lightmapThreshold: number;
|
|
|
|
|
|
+ useLightmapAsShadowmap: boolean;
|
|
diffuseFresnelParameters: FresnelParameters;
|
|
diffuseFresnelParameters: FresnelParameters;
|
|
opacityFresnelParameters: FresnelParameters;
|
|
opacityFresnelParameters: FresnelParameters;
|
|
reflectionFresnelParameters: FresnelParameters;
|
|
reflectionFresnelParameters: FresnelParameters;
|
|
@@ -4531,99 +4531,45 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class VertexBuffer {
|
|
|
|
- private _mesh;
|
|
|
|
- private _engine;
|
|
|
|
- private _buffer;
|
|
|
|
- private _data;
|
|
|
|
- private _updatable;
|
|
|
|
- private _kind;
|
|
|
|
- private _strideSize;
|
|
|
|
- constructor(engine: any, data: number[] | Float32Array, kind: string, updatable: boolean, postponeInternalCreation?: boolean, stride?: number);
|
|
|
|
- isUpdatable(): boolean;
|
|
|
|
- getData(): number[] | Float32Array;
|
|
|
|
- getBuffer(): WebGLBuffer;
|
|
|
|
- getStrideSize(): number;
|
|
|
|
- create(data?: number[] | Float32Array): void;
|
|
|
|
- update(data: number[] | Float32Array): void;
|
|
|
|
- updateDirectly(data: Float32Array, offset: number): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- private static _PositionKind;
|
|
|
|
- private static _NormalKind;
|
|
|
|
- private static _UVKind;
|
|
|
|
- private static _UV2Kind;
|
|
|
|
- private static _UV3Kind;
|
|
|
|
- private static _UV4Kind;
|
|
|
|
- private static _UV5Kind;
|
|
|
|
- private static _UV6Kind;
|
|
|
|
- private static _ColorKind;
|
|
|
|
- private static _MatricesIndicesKind;
|
|
|
|
- private static _MatricesWeightsKind;
|
|
|
|
- static PositionKind: string;
|
|
|
|
- static NormalKind: string;
|
|
|
|
- static UVKind: string;
|
|
|
|
- static UV2Kind: string;
|
|
|
|
- static UV3Kind: string;
|
|
|
|
- static UV4Kind: string;
|
|
|
|
- static UV5Kind: string;
|
|
|
|
- static UV6Kind: string;
|
|
|
|
- static ColorKind: string;
|
|
|
|
- static MatricesIndicesKind: string;
|
|
|
|
- static MatricesWeightsKind: string;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-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;
|
|
|
|
- getWorldObject(): any;
|
|
|
|
- getPhysicsBodyOfMesh(mesh: AbstractMesh): any;
|
|
|
|
- }
|
|
|
|
- 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;
|
|
|
|
|
|
+ class VertexBuffer {
|
|
|
|
+ private _mesh;
|
|
|
|
+ private _engine;
|
|
|
|
+ private _buffer;
|
|
|
|
+ private _data;
|
|
|
|
+ private _updatable;
|
|
|
|
+ private _kind;
|
|
|
|
+ private _strideSize;
|
|
|
|
+ constructor(engine: any, data: number[] | Float32Array, kind: string, updatable: boolean, postponeInternalCreation?: boolean, stride?: number);
|
|
|
|
+ isUpdatable(): boolean;
|
|
|
|
+ getData(): number[] | Float32Array;
|
|
|
|
+ getBuffer(): WebGLBuffer;
|
|
|
|
+ getStrideSize(): number;
|
|
|
|
+ create(data?: number[] | Float32Array): void;
|
|
|
|
+ update(data: number[] | Float32Array): void;
|
|
|
|
+ updateDirectly(data: Float32Array, offset: number): void;
|
|
dispose(): void;
|
|
dispose(): void;
|
|
- isSupported(): boolean;
|
|
|
|
- getPhysicsBodyOfMesh(mesh: AbstractMesh): any;
|
|
|
|
- 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;
|
|
|
|
|
|
+ private static _PositionKind;
|
|
|
|
+ private static _NormalKind;
|
|
|
|
+ private static _UVKind;
|
|
|
|
+ private static _UV2Kind;
|
|
|
|
+ private static _UV3Kind;
|
|
|
|
+ private static _UV4Kind;
|
|
|
|
+ private static _UV5Kind;
|
|
|
|
+ private static _UV6Kind;
|
|
|
|
+ private static _ColorKind;
|
|
|
|
+ private static _MatricesIndicesKind;
|
|
|
|
+ private static _MatricesWeightsKind;
|
|
|
|
+ static PositionKind: string;
|
|
|
|
+ static NormalKind: string;
|
|
|
|
+ static UVKind: string;
|
|
|
|
+ static UV2Kind: string;
|
|
|
|
+ static UV3Kind: string;
|
|
|
|
+ static UV4Kind: string;
|
|
|
|
+ static UV5Kind: string;
|
|
|
|
+ static UV6Kind: string;
|
|
|
|
+ static ColorKind: string;
|
|
|
|
+ static MatricesIndicesKind: string;
|
|
|
|
+ static MatricesWeightsKind: string;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -4835,6 +4781,60 @@ 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;
|
|
|
|
+ getWorldObject(): any;
|
|
|
|
+ getPhysicsBodyOfMesh(mesh: AbstractMesh): any;
|
|
|
|
+ }
|
|
|
|
+ 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;
|
|
|
|
+ getPhysicsBodyOfMesh(mesh: AbstractMesh): any;
|
|
|
|
+ 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 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);
|
|
}
|
|
}
|
|
@@ -5388,6 +5388,27 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ class ReflectionProbe {
|
|
|
|
+ name: string;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _renderTargetTexture;
|
|
|
|
+ private _projectionMatrix;
|
|
|
|
+ private _viewMatrix;
|
|
|
|
+ private _target;
|
|
|
|
+ private _add;
|
|
|
|
+ private _attachedMesh;
|
|
|
|
+ position: Vector3;
|
|
|
|
+ constructor(name: string, size: number, scene: Scene, generateMipMaps?: boolean);
|
|
|
|
+ refreshRate: number;
|
|
|
|
+ getScene(): Scene;
|
|
|
|
+ cubeTexture: RenderTargetTexture;
|
|
|
|
+ renderList: AbstractMesh[];
|
|
|
|
+ attachToMesh(mesh: AbstractMesh): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
class BoundingBoxRenderer {
|
|
class BoundingBoxRenderer {
|
|
frontColor: Color3;
|
|
frontColor: Color3;
|
|
backColor: Color3;
|
|
backColor: Color3;
|
|
@@ -5557,27 +5578,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;
|
|
|
|
- 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.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;
|
|
@@ -6573,6 +6573,61 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ class CannonJSPlugin implements IPhysicsEnginePlugin {
|
|
|
|
+ private _world;
|
|
|
|
+ private _registeredMeshes;
|
|
|
|
+ private _physicsMaterials;
|
|
|
|
+ initialize(iterations?: number): void;
|
|
|
|
+ private _checkWithEpsilon(value);
|
|
|
|
+ runOneStep(delta: number): void;
|
|
|
|
+ setGravity(gravity: Vector3): void;
|
|
|
|
+ registerMesh(mesh: AbstractMesh, impostor: number, options?: PhysicsBodyCreationOptions): any;
|
|
|
|
+ private _createShape(mesh, impostor, options?);
|
|
|
|
+ private _createConvexPolyhedron(rawVerts, rawFaces, mesh, options?);
|
|
|
|
+ private _addMaterial(friction, restitution);
|
|
|
|
+ private _createRigidBodyFromShape(shape, mesh, mass, friction, restitution);
|
|
|
|
+ registerMeshesAsCompound(parts: PhysicsCompoundBodyPart[], options: PhysicsBodyCreationOptions): any;
|
|
|
|
+ private _unbindBody(body);
|
|
|
|
+ unregisterMesh(mesh: AbstractMesh): void;
|
|
|
|
+ applyImpulse(mesh: AbstractMesh, force: Vector3, contactPoint: Vector3): void;
|
|
|
|
+ updateBodyPosition: (mesh: AbstractMesh) => void;
|
|
|
|
+ createLink(mesh1: AbstractMesh, mesh2: AbstractMesh, pivot1: Vector3, pivot2: Vector3): boolean;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ isSupported(): boolean;
|
|
|
|
+ getWorldObject(): any;
|
|
|
|
+ getPhysicsBodyOfMesh(mesh: AbstractMesh): any;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class OimoJSPlugin implements IPhysicsEnginePlugin {
|
|
|
|
+ private _world;
|
|
|
|
+ private _registeredMeshes;
|
|
|
|
+ private _checkWithEpsilon(value);
|
|
|
|
+ initialize(iterations?: number): void;
|
|
|
|
+ setGravity(gravity: Vector3): void;
|
|
|
|
+ registerMesh(mesh: AbstractMesh, impostor: number, options: PhysicsBodyCreationOptions): any;
|
|
|
|
+ registerMeshesAsCompound(parts: PhysicsCompoundBodyPart[], options: PhysicsBodyCreationOptions): any;
|
|
|
|
+ private _createBodyAsCompound(part, options, initialMesh);
|
|
|
|
+ unregisterMesh(mesh: AbstractMesh): void;
|
|
|
|
+ private _unbindBody(body);
|
|
|
|
+ /**
|
|
|
|
+ * Update the body position according to the mesh position
|
|
|
|
+ * @param mesh
|
|
|
|
+ */
|
|
|
|
+ updateBodyPosition: (mesh: AbstractMesh) => void;
|
|
|
|
+ applyImpulse(mesh: AbstractMesh, force: Vector3, contactPoint: Vector3): void;
|
|
|
|
+ createLink(mesh1: AbstractMesh, mesh2: AbstractMesh, pivot1: Vector3, pivot2: Vector3, options?: any): boolean;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ isSupported(): boolean;
|
|
|
|
+ getWorldObject(): any;
|
|
|
|
+ getPhysicsBodyOfMesh(mesh: AbstractMesh): any;
|
|
|
|
+ private _getLastShape(body);
|
|
|
|
+ runOneStep(time: number): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
class PostProcessRenderEffect {
|
|
class PostProcessRenderEffect {
|
|
private _engine;
|
|
private _engine;
|
|
private _postProcesses;
|
|
private _postProcesses;
|
|
@@ -6671,61 +6726,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class CannonJSPlugin implements IPhysicsEnginePlugin {
|
|
|
|
- private _world;
|
|
|
|
- private _registeredMeshes;
|
|
|
|
- private _physicsMaterials;
|
|
|
|
- initialize(iterations?: number): void;
|
|
|
|
- private _checkWithEpsilon(value);
|
|
|
|
- runOneStep(delta: number): void;
|
|
|
|
- setGravity(gravity: Vector3): void;
|
|
|
|
- registerMesh(mesh: AbstractMesh, impostor: number, options?: PhysicsBodyCreationOptions): any;
|
|
|
|
- private _createShape(mesh, impostor, options?);
|
|
|
|
- private _createConvexPolyhedron(rawVerts, rawFaces, mesh, options?);
|
|
|
|
- private _addMaterial(friction, restitution);
|
|
|
|
- private _createRigidBodyFromShape(shape, mesh, mass, friction, restitution);
|
|
|
|
- registerMeshesAsCompound(parts: PhysicsCompoundBodyPart[], options: PhysicsBodyCreationOptions): any;
|
|
|
|
- private _unbindBody(body);
|
|
|
|
- unregisterMesh(mesh: AbstractMesh): void;
|
|
|
|
- applyImpulse(mesh: AbstractMesh, force: Vector3, contactPoint: Vector3): void;
|
|
|
|
- updateBodyPosition: (mesh: AbstractMesh) => void;
|
|
|
|
- createLink(mesh1: AbstractMesh, mesh2: AbstractMesh, pivot1: Vector3, pivot2: Vector3): boolean;
|
|
|
|
- dispose(): void;
|
|
|
|
- isSupported(): boolean;
|
|
|
|
- getWorldObject(): any;
|
|
|
|
- getPhysicsBodyOfMesh(mesh: AbstractMesh): any;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class OimoJSPlugin implements IPhysicsEnginePlugin {
|
|
|
|
- private _world;
|
|
|
|
- private _registeredMeshes;
|
|
|
|
- private _checkWithEpsilon(value);
|
|
|
|
- initialize(iterations?: number): void;
|
|
|
|
- setGravity(gravity: Vector3): void;
|
|
|
|
- registerMesh(mesh: AbstractMesh, impostor: number, options: PhysicsBodyCreationOptions): any;
|
|
|
|
- registerMeshesAsCompound(parts: PhysicsCompoundBodyPart[], options: PhysicsBodyCreationOptions): any;
|
|
|
|
- private _createBodyAsCompound(part, options, initialMesh);
|
|
|
|
- unregisterMesh(mesh: AbstractMesh): void;
|
|
|
|
- private _unbindBody(body);
|
|
|
|
- /**
|
|
|
|
- * Update the body position according to the mesh position
|
|
|
|
- * @param mesh
|
|
|
|
- */
|
|
|
|
- updateBodyPosition: (mesh: AbstractMesh) => void;
|
|
|
|
- applyImpulse(mesh: AbstractMesh, force: Vector3, contactPoint: Vector3): void;
|
|
|
|
- createLink(mesh1: AbstractMesh, mesh2: AbstractMesh, pivot1: Vector3, pivot2: Vector3, options?: any): boolean;
|
|
|
|
- dispose(): void;
|
|
|
|
- isSupported(): boolean;
|
|
|
|
- getWorldObject(): any;
|
|
|
|
- getPhysicsBodyOfMesh(mesh: AbstractMesh): any;
|
|
|
|
- private _getLastShape(body);
|
|
|
|
- runOneStep(time: number): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class CustomProceduralTexture extends ProceduralTexture {
|
|
class CustomProceduralTexture extends ProceduralTexture {
|
|
private _animate;
|
|
private _animate;
|
|
private _time;
|
|
private _time;
|