|
@@ -1282,6 +1282,7 @@ declare module BABYLON {
|
|
clearColor: Color4;
|
|
clearColor: Color4;
|
|
ambientColor: Color3;
|
|
ambientColor: Color3;
|
|
forceWireframe: boolean;
|
|
forceWireframe: boolean;
|
|
|
|
+ private _forcePointsCloud;
|
|
forcePointsCloud: boolean;
|
|
forcePointsCloud: boolean;
|
|
forceShowBoundingBoxes: boolean;
|
|
forceShowBoundingBoxes: boolean;
|
|
clipPlane: Plane;
|
|
clipPlane: Plane;
|
|
@@ -1429,7 +1430,9 @@ declare module BABYLON {
|
|
* is fog enabled on this scene.
|
|
* is fog enabled on this scene.
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
*/
|
|
*/
|
|
|
|
+ private _fogEnabled;
|
|
fogEnabled: boolean;
|
|
fogEnabled: boolean;
|
|
|
|
+ private _fogMode;
|
|
fogMode: number;
|
|
fogMode: number;
|
|
fogColor: Color3;
|
|
fogColor: Color3;
|
|
fogDensity: number;
|
|
fogDensity: number;
|
|
@@ -1481,6 +1484,7 @@ declare module BABYLON {
|
|
spriteManagers: SpriteManager[];
|
|
spriteManagers: SpriteManager[];
|
|
layers: Layer[];
|
|
layers: Layer[];
|
|
highlightLayers: HighlightLayer[];
|
|
highlightLayers: HighlightLayer[];
|
|
|
|
+ private _skeletonsEnabled;
|
|
skeletonsEnabled: boolean;
|
|
skeletonsEnabled: boolean;
|
|
skeletons: Skeleton[];
|
|
skeletons: Skeleton[];
|
|
lensFlaresEnabled: boolean;
|
|
lensFlaresEnabled: boolean;
|
|
@@ -2272,188 +2276,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class Analyser {
|
|
|
|
- SMOOTHING: number;
|
|
|
|
- FFT_SIZE: number;
|
|
|
|
- BARGRAPHAMPLITUDE: number;
|
|
|
|
- DEBUGCANVASPOS: {
|
|
|
|
- x: number;
|
|
|
|
- y: number;
|
|
|
|
- };
|
|
|
|
- DEBUGCANVASSIZE: {
|
|
|
|
- width: number;
|
|
|
|
- height: number;
|
|
|
|
- };
|
|
|
|
- private _byteFreqs;
|
|
|
|
- private _byteTime;
|
|
|
|
- private _floatFreqs;
|
|
|
|
- private _webAudioAnalyser;
|
|
|
|
- private _debugCanvas;
|
|
|
|
- private _debugCanvasContext;
|
|
|
|
- private _scene;
|
|
|
|
- private _registerFunc;
|
|
|
|
- private _audioEngine;
|
|
|
|
- constructor(scene: Scene);
|
|
|
|
- getFrequencyBinCount(): number;
|
|
|
|
- getByteFrequencyData(): Uint8Array;
|
|
|
|
- getByteTimeDomainData(): Uint8Array;
|
|
|
|
- getFloatFrequencyData(): Uint8Array;
|
|
|
|
- drawDebugCanvas(): void;
|
|
|
|
- stopDebugCanvas(): void;
|
|
|
|
- connectAudioNodes(inputAudioNode: AudioNode, outputAudioNode: AudioNode): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class AudioEngine {
|
|
|
|
- private _audioContext;
|
|
|
|
- private _audioContextInitialized;
|
|
|
|
- canUseWebAudio: boolean;
|
|
|
|
- masterGain: GainNode;
|
|
|
|
- private _connectedAnalyser;
|
|
|
|
- WarnedWebAudioUnsupported: boolean;
|
|
|
|
- unlocked: boolean;
|
|
|
|
- onAudioUnlocked: () => any;
|
|
|
|
- isMP3supported: boolean;
|
|
|
|
- isOGGsupported: boolean;
|
|
|
|
- readonly audioContext: AudioContext;
|
|
|
|
- constructor();
|
|
|
|
- private _unlockiOSaudio();
|
|
|
|
- private _initializeAudioContext();
|
|
|
|
- dispose(): void;
|
|
|
|
- getGlobalVolume(): number;
|
|
|
|
- setGlobalVolume(newVolume: number): void;
|
|
|
|
- connectToAnalyser(analyser: Analyser): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class Sound {
|
|
|
|
- name: string;
|
|
|
|
- autoplay: boolean;
|
|
|
|
- loop: boolean;
|
|
|
|
- useCustomAttenuation: boolean;
|
|
|
|
- soundTrackId: number;
|
|
|
|
- spatialSound: boolean;
|
|
|
|
- refDistance: number;
|
|
|
|
- rolloffFactor: number;
|
|
|
|
- maxDistance: number;
|
|
|
|
- distanceModel: string;
|
|
|
|
- private _panningModel;
|
|
|
|
- onended: () => any;
|
|
|
|
- private _playbackRate;
|
|
|
|
- private _streaming;
|
|
|
|
- private _startTime;
|
|
|
|
- private _startOffset;
|
|
|
|
- private _position;
|
|
|
|
- private _localDirection;
|
|
|
|
- private _volume;
|
|
|
|
- private _isLoaded;
|
|
|
|
- private _isReadyToPlay;
|
|
|
|
- isPlaying: boolean;
|
|
|
|
- isPaused: boolean;
|
|
|
|
- private _isDirectional;
|
|
|
|
- private _readyToPlayCallback;
|
|
|
|
- private _audioBuffer;
|
|
|
|
- private _soundSource;
|
|
|
|
- private _streamingSource;
|
|
|
|
- private _soundPanner;
|
|
|
|
- private _soundGain;
|
|
|
|
- private _inputAudioNode;
|
|
|
|
- private _ouputAudioNode;
|
|
|
|
- private _coneInnerAngle;
|
|
|
|
- private _coneOuterAngle;
|
|
|
|
- private _coneOuterGain;
|
|
|
|
- private _scene;
|
|
|
|
- private _connectedMesh;
|
|
|
|
- private _customAttenuationFunction;
|
|
|
|
- private _registerFunc;
|
|
|
|
- private _isOutputConnected;
|
|
|
|
- private _htmlAudioElement;
|
|
|
|
- private _urlType;
|
|
|
|
- /**
|
|
|
|
- * Create a sound and attach it to a scene
|
|
|
|
- * @param name Name of your sound
|
|
|
|
- * @param urlOrArrayBuffer Url to the sound to load async or ArrayBuffer
|
|
|
|
- * @param readyToPlayCallback Provide a callback function if you'd like to load your code once the sound is ready to be played
|
|
|
|
- * @param options Objects to provide with the current available options: autoplay, loop, volume, spatialSound, maxDistance, rolloffFactor, refDistance, distanceModel, panningModel, streaming
|
|
|
|
- */
|
|
|
|
- constructor(name: string, urlOrArrayBuffer: any, scene: Scene, readyToPlayCallback?: () => void, options?: any);
|
|
|
|
- dispose(): void;
|
|
|
|
- isReady(): boolean;
|
|
|
|
- private _soundLoaded(audioData);
|
|
|
|
- setAudioBuffer(audioBuffer: AudioBuffer): void;
|
|
|
|
- updateOptions(options: any): void;
|
|
|
|
- private _createSpatialParameters();
|
|
|
|
- private _updateSpatialParameters();
|
|
|
|
- switchPanningModelToHRTF(): void;
|
|
|
|
- switchPanningModelToEqualPower(): void;
|
|
|
|
- private _switchPanningModel();
|
|
|
|
- connectToSoundTrackAudioNode(soundTrackAudioNode: AudioNode): void;
|
|
|
|
- /**
|
|
|
|
- * Transform this sound into a directional source
|
|
|
|
- * @param coneInnerAngle Size of the inner cone in degree
|
|
|
|
- * @param coneOuterAngle Size of the outer cone in degree
|
|
|
|
- * @param coneOuterGain Volume of the sound outside the outer cone (between 0.0 and 1.0)
|
|
|
|
- */
|
|
|
|
- setDirectionalCone(coneInnerAngle: number, coneOuterAngle: number, coneOuterGain: number): void;
|
|
|
|
- setPosition(newPosition: Vector3): void;
|
|
|
|
- setLocalDirectionToMesh(newLocalDirection: Vector3): void;
|
|
|
|
- private _updateDirection();
|
|
|
|
- updateDistanceFromListener(): void;
|
|
|
|
- setAttenuationFunction(callback: (currentVolume: number, currentDistance: number, maxDistance: number, refDistance: number, rolloffFactor: number) => number): void;
|
|
|
|
- /**
|
|
|
|
- * Play the sound
|
|
|
|
- * @param time (optional) Start the sound after X seconds. Start immediately (0) by default.
|
|
|
|
- * @param offset (optional) Start the sound setting it at a specific time
|
|
|
|
- */
|
|
|
|
- play(time?: number, offset?: number): void;
|
|
|
|
- private _onended();
|
|
|
|
- /**
|
|
|
|
- * Stop the sound
|
|
|
|
- * @param time (optional) Stop the sound after X seconds. Stop immediately (0) by default.
|
|
|
|
- */
|
|
|
|
- stop(time?: number): void;
|
|
|
|
- pause(): void;
|
|
|
|
- setVolume(newVolume: number, time?: number): void;
|
|
|
|
- setPlaybackRate(newPlaybackRate: number): void;
|
|
|
|
- getVolume(): number;
|
|
|
|
- attachToMesh(meshToConnectTo: AbstractMesh): void;
|
|
|
|
- detachFromMesh(): void;
|
|
|
|
- private _onRegisterAfterWorldMatrixUpdate(connectedMesh);
|
|
|
|
- clone(): Sound;
|
|
|
|
- getAudioBuffer(): AudioBuffer;
|
|
|
|
- serialize(): any;
|
|
|
|
- static Parse(parsedSound: any, scene: Scene, rootUrl: string, sourceSound?: Sound): Sound;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class SoundTrack {
|
|
|
|
- private _outputAudioNode;
|
|
|
|
- private _inputAudioNode;
|
|
|
|
- private _trackConvolver;
|
|
|
|
- private _scene;
|
|
|
|
- id: number;
|
|
|
|
- soundCollection: Array<Sound>;
|
|
|
|
- private _isMainTrack;
|
|
|
|
- private _connectedAnalyser;
|
|
|
|
- private _options;
|
|
|
|
- private _isInitialized;
|
|
|
|
- constructor(scene: Scene, options?: any);
|
|
|
|
- private _initializeSoundTrackAudioGraph();
|
|
|
|
- dispose(): void;
|
|
|
|
- AddSound(sound: Sound): void;
|
|
|
|
- RemoveSound(sound: Sound): void;
|
|
|
|
- setVolume(newVolume: number): void;
|
|
|
|
- switchPanningModelToHRTF(): void;
|
|
|
|
- switchPanningModelToEqualPower(): void;
|
|
|
|
- connectToAnalyser(analyser: Analyser): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
class Animatable {
|
|
class Animatable {
|
|
target: any;
|
|
target: any;
|
|
fromFrame: number;
|
|
fromFrame: number;
|
|
@@ -2681,6 +2503,188 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ class Analyser {
|
|
|
|
+ SMOOTHING: number;
|
|
|
|
+ FFT_SIZE: number;
|
|
|
|
+ BARGRAPHAMPLITUDE: number;
|
|
|
|
+ DEBUGCANVASPOS: {
|
|
|
|
+ x: number;
|
|
|
|
+ y: number;
|
|
|
|
+ };
|
|
|
|
+ DEBUGCANVASSIZE: {
|
|
|
|
+ width: number;
|
|
|
|
+ height: number;
|
|
|
|
+ };
|
|
|
|
+ private _byteFreqs;
|
|
|
|
+ private _byteTime;
|
|
|
|
+ private _floatFreqs;
|
|
|
|
+ private _webAudioAnalyser;
|
|
|
|
+ private _debugCanvas;
|
|
|
|
+ private _debugCanvasContext;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _registerFunc;
|
|
|
|
+ private _audioEngine;
|
|
|
|
+ constructor(scene: Scene);
|
|
|
|
+ getFrequencyBinCount(): number;
|
|
|
|
+ getByteFrequencyData(): Uint8Array;
|
|
|
|
+ getByteTimeDomainData(): Uint8Array;
|
|
|
|
+ getFloatFrequencyData(): Uint8Array;
|
|
|
|
+ drawDebugCanvas(): void;
|
|
|
|
+ stopDebugCanvas(): void;
|
|
|
|
+ connectAudioNodes(inputAudioNode: AudioNode, outputAudioNode: AudioNode): void;
|
|
|
|
+ dispose(): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class AudioEngine {
|
|
|
|
+ private _audioContext;
|
|
|
|
+ private _audioContextInitialized;
|
|
|
|
+ canUseWebAudio: boolean;
|
|
|
|
+ masterGain: GainNode;
|
|
|
|
+ private _connectedAnalyser;
|
|
|
|
+ WarnedWebAudioUnsupported: boolean;
|
|
|
|
+ unlocked: boolean;
|
|
|
|
+ onAudioUnlocked: () => any;
|
|
|
|
+ isMP3supported: boolean;
|
|
|
|
+ isOGGsupported: boolean;
|
|
|
|
+ readonly audioContext: AudioContext;
|
|
|
|
+ constructor();
|
|
|
|
+ private _unlockiOSaudio();
|
|
|
|
+ private _initializeAudioContext();
|
|
|
|
+ dispose(): void;
|
|
|
|
+ getGlobalVolume(): number;
|
|
|
|
+ setGlobalVolume(newVolume: number): void;
|
|
|
|
+ connectToAnalyser(analyser: Analyser): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class Sound {
|
|
|
|
+ name: string;
|
|
|
|
+ autoplay: boolean;
|
|
|
|
+ loop: boolean;
|
|
|
|
+ useCustomAttenuation: boolean;
|
|
|
|
+ soundTrackId: number;
|
|
|
|
+ spatialSound: boolean;
|
|
|
|
+ refDistance: number;
|
|
|
|
+ rolloffFactor: number;
|
|
|
|
+ maxDistance: number;
|
|
|
|
+ distanceModel: string;
|
|
|
|
+ private _panningModel;
|
|
|
|
+ onended: () => any;
|
|
|
|
+ private _playbackRate;
|
|
|
|
+ private _streaming;
|
|
|
|
+ private _startTime;
|
|
|
|
+ private _startOffset;
|
|
|
|
+ private _position;
|
|
|
|
+ private _localDirection;
|
|
|
|
+ private _volume;
|
|
|
|
+ private _isLoaded;
|
|
|
|
+ private _isReadyToPlay;
|
|
|
|
+ isPlaying: boolean;
|
|
|
|
+ isPaused: boolean;
|
|
|
|
+ private _isDirectional;
|
|
|
|
+ private _readyToPlayCallback;
|
|
|
|
+ private _audioBuffer;
|
|
|
|
+ private _soundSource;
|
|
|
|
+ private _streamingSource;
|
|
|
|
+ private _soundPanner;
|
|
|
|
+ private _soundGain;
|
|
|
|
+ private _inputAudioNode;
|
|
|
|
+ private _ouputAudioNode;
|
|
|
|
+ private _coneInnerAngle;
|
|
|
|
+ private _coneOuterAngle;
|
|
|
|
+ private _coneOuterGain;
|
|
|
|
+ private _scene;
|
|
|
|
+ private _connectedMesh;
|
|
|
|
+ private _customAttenuationFunction;
|
|
|
|
+ private _registerFunc;
|
|
|
|
+ private _isOutputConnected;
|
|
|
|
+ private _htmlAudioElement;
|
|
|
|
+ private _urlType;
|
|
|
|
+ /**
|
|
|
|
+ * Create a sound and attach it to a scene
|
|
|
|
+ * @param name Name of your sound
|
|
|
|
+ * @param urlOrArrayBuffer Url to the sound to load async or ArrayBuffer
|
|
|
|
+ * @param readyToPlayCallback Provide a callback function if you'd like to load your code once the sound is ready to be played
|
|
|
|
+ * @param options Objects to provide with the current available options: autoplay, loop, volume, spatialSound, maxDistance, rolloffFactor, refDistance, distanceModel, panningModel, streaming
|
|
|
|
+ */
|
|
|
|
+ constructor(name: string, urlOrArrayBuffer: any, scene: Scene, readyToPlayCallback?: () => void, options?: any);
|
|
|
|
+ dispose(): void;
|
|
|
|
+ isReady(): boolean;
|
|
|
|
+ private _soundLoaded(audioData);
|
|
|
|
+ setAudioBuffer(audioBuffer: AudioBuffer): void;
|
|
|
|
+ updateOptions(options: any): void;
|
|
|
|
+ private _createSpatialParameters();
|
|
|
|
+ private _updateSpatialParameters();
|
|
|
|
+ switchPanningModelToHRTF(): void;
|
|
|
|
+ switchPanningModelToEqualPower(): void;
|
|
|
|
+ private _switchPanningModel();
|
|
|
|
+ connectToSoundTrackAudioNode(soundTrackAudioNode: AudioNode): void;
|
|
|
|
+ /**
|
|
|
|
+ * Transform this sound into a directional source
|
|
|
|
+ * @param coneInnerAngle Size of the inner cone in degree
|
|
|
|
+ * @param coneOuterAngle Size of the outer cone in degree
|
|
|
|
+ * @param coneOuterGain Volume of the sound outside the outer cone (between 0.0 and 1.0)
|
|
|
|
+ */
|
|
|
|
+ setDirectionalCone(coneInnerAngle: number, coneOuterAngle: number, coneOuterGain: number): void;
|
|
|
|
+ setPosition(newPosition: Vector3): void;
|
|
|
|
+ setLocalDirectionToMesh(newLocalDirection: Vector3): void;
|
|
|
|
+ private _updateDirection();
|
|
|
|
+ updateDistanceFromListener(): void;
|
|
|
|
+ setAttenuationFunction(callback: (currentVolume: number, currentDistance: number, maxDistance: number, refDistance: number, rolloffFactor: number) => number): void;
|
|
|
|
+ /**
|
|
|
|
+ * Play the sound
|
|
|
|
+ * @param time (optional) Start the sound after X seconds. Start immediately (0) by default.
|
|
|
|
+ * @param offset (optional) Start the sound setting it at a specific time
|
|
|
|
+ */
|
|
|
|
+ play(time?: number, offset?: number): void;
|
|
|
|
+ private _onended();
|
|
|
|
+ /**
|
|
|
|
+ * Stop the sound
|
|
|
|
+ * @param time (optional) Stop the sound after X seconds. Stop immediately (0) by default.
|
|
|
|
+ */
|
|
|
|
+ stop(time?: number): void;
|
|
|
|
+ pause(): void;
|
|
|
|
+ setVolume(newVolume: number, time?: number): void;
|
|
|
|
+ setPlaybackRate(newPlaybackRate: number): void;
|
|
|
|
+ getVolume(): number;
|
|
|
|
+ attachToMesh(meshToConnectTo: AbstractMesh): void;
|
|
|
|
+ detachFromMesh(): void;
|
|
|
|
+ private _onRegisterAfterWorldMatrixUpdate(connectedMesh);
|
|
|
|
+ clone(): Sound;
|
|
|
|
+ getAudioBuffer(): AudioBuffer;
|
|
|
|
+ serialize(): any;
|
|
|
|
+ static Parse(parsedSound: any, scene: Scene, rootUrl: string, sourceSound?: Sound): Sound;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class SoundTrack {
|
|
|
|
+ private _outputAudioNode;
|
|
|
|
+ private _inputAudioNode;
|
|
|
|
+ private _trackConvolver;
|
|
|
|
+ private _scene;
|
|
|
|
+ id: number;
|
|
|
|
+ soundCollection: Array<Sound>;
|
|
|
|
+ private _isMainTrack;
|
|
|
|
+ private _connectedAnalyser;
|
|
|
|
+ private _options;
|
|
|
|
+ private _isInitialized;
|
|
|
|
+ constructor(scene: Scene, options?: any);
|
|
|
|
+ private _initializeSoundTrackAudioGraph();
|
|
|
|
+ dispose(): void;
|
|
|
|
+ AddSound(sound: Sound): void;
|
|
|
|
+ RemoveSound(sound: Sound): void;
|
|
|
|
+ setVolume(newVolume: number): void;
|
|
|
|
+ switchPanningModelToHRTF(): void;
|
|
|
|
+ switchPanningModelToEqualPower(): void;
|
|
|
|
+ connectToAnalyser(analyser: Analyser): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
class Bone extends Node {
|
|
class Bone extends Node {
|
|
name: string;
|
|
name: string;
|
|
children: Bone[];
|
|
children: Bone[];
|
|
@@ -3828,27 +3832,132 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class IntersectionInfo {
|
|
|
|
- bu: number;
|
|
|
|
- bv: number;
|
|
|
|
- distance: number;
|
|
|
|
- faceId: number;
|
|
|
|
- subMeshId: number;
|
|
|
|
- constructor(bu: number, bv: number, distance: number);
|
|
|
|
- }
|
|
|
|
- class PickingInfo {
|
|
|
|
- hit: boolean;
|
|
|
|
- distance: number;
|
|
|
|
- pickedPoint: Vector3;
|
|
|
|
- pickedMesh: AbstractMesh;
|
|
|
|
- bu: number;
|
|
|
|
- bv: number;
|
|
|
|
- faceId: number;
|
|
|
|
- subMeshId: number;
|
|
|
|
- pickedSprite: Sprite;
|
|
|
|
- getNormal(useWorldCoordinates?: boolean, useVerticesNormals?: boolean): Vector3;
|
|
|
|
- getTextureCoordinates(): Vector2;
|
|
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ class IntersectionInfo {
|
|
|
|
+ bu: number;
|
|
|
|
+ bv: number;
|
|
|
|
+ distance: number;
|
|
|
|
+ faceId: number;
|
|
|
|
+ subMeshId: number;
|
|
|
|
+ constructor(bu: number, bv: number, distance: number);
|
|
|
|
+ }
|
|
|
|
+ class PickingInfo {
|
|
|
|
+ hit: boolean;
|
|
|
|
+ distance: number;
|
|
|
|
+ pickedPoint: Vector3;
|
|
|
|
+ pickedMesh: AbstractMesh;
|
|
|
|
+ bu: number;
|
|
|
|
+ bv: number;
|
|
|
|
+ faceId: number;
|
|
|
|
+ subMeshId: number;
|
|
|
|
+ pickedSprite: Sprite;
|
|
|
|
+ getNormal(useWorldCoordinates?: boolean, useVerticesNormals?: boolean): Vector3;
|
|
|
|
+ getTextureCoordinates(): Vector2;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3966,111 +4075,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 {
|
|
/**
|
|
/**
|
|
* Highlight layer options. This helps customizing the behaviour
|
|
* Highlight layer options. This helps customizing the behaviour
|
|
@@ -4327,51 +4331,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class LensFlare {
|
|
|
|
- size: number;
|
|
|
|
- position: number;
|
|
|
|
- color: Color3;
|
|
|
|
- texture: Texture;
|
|
|
|
- alphaMode: number;
|
|
|
|
- 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;
|
|
|
|
- viewportBorder: 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 {
|
|
class DirectionalLight extends Light implements IShadowLight {
|
|
position: Vector3;
|
|
position: Vector3;
|
|
direction: Vector3;
|
|
direction: Vector3;
|
|
@@ -4756,6 +4715,51 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ class LensFlare {
|
|
|
|
+ size: number;
|
|
|
|
+ position: number;
|
|
|
|
+ color: Color3;
|
|
|
|
+ texture: Texture;
|
|
|
|
+ alphaMode: number;
|
|
|
|
+ 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;
|
|
|
|
+ viewportBorder: 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 ISceneLoaderPluginExtensions {
|
|
interface ISceneLoaderPluginExtensions {
|
|
[extension: string]: {
|
|
[extension: string]: {
|
|
isBinary: boolean;
|
|
isBinary: boolean;
|
|
@@ -5157,8 +5161,11 @@ declare module BABYLON {
|
|
_keys: string[];
|
|
_keys: string[];
|
|
_isDirty: boolean;
|
|
_isDirty: boolean;
|
|
_trackIsDirty: boolean;
|
|
_trackIsDirty: boolean;
|
|
|
|
+ _renderId: number;
|
|
_areLightsDirty: boolean;
|
|
_areLightsDirty: boolean;
|
|
|
|
+ _areAttributesDirty: boolean;
|
|
_needNormals: boolean;
|
|
_needNormals: boolean;
|
|
|
|
+ _needUVs: boolean;
|
|
constructor(trackIsDirty?: boolean);
|
|
constructor(trackIsDirty?: boolean);
|
|
private _reBind(key);
|
|
private _reBind(key);
|
|
rebuild(): void;
|
|
rebuild(): void;
|
|
@@ -5181,15 +5188,20 @@ declare module BABYLON {
|
|
private static _TextureDirtyFlag;
|
|
private static _TextureDirtyFlag;
|
|
private static _LightDirtyFlag;
|
|
private static _LightDirtyFlag;
|
|
private static _FresnelDirtyFlag;
|
|
private static _FresnelDirtyFlag;
|
|
|
|
+ private static _AttributesDirtyFlag;
|
|
|
|
+ private static _MiscDirtyFlag;
|
|
static readonly TextureDirtyFlag: number;
|
|
static readonly TextureDirtyFlag: number;
|
|
static readonly LightDirtyFlag: number;
|
|
static readonly LightDirtyFlag: number;
|
|
static readonly FresnelDirtyFlag: number;
|
|
static readonly FresnelDirtyFlag: number;
|
|
|
|
+ static readonly AttributesDirtyFlag: number;
|
|
|
|
+ static readonly MiscDirtyFlag: number;
|
|
id: string;
|
|
id: string;
|
|
name: string;
|
|
name: string;
|
|
checkReadyOnEveryCall: boolean;
|
|
checkReadyOnEveryCall: boolean;
|
|
checkReadyOnlyOnce: boolean;
|
|
checkReadyOnlyOnce: boolean;
|
|
state: string;
|
|
state: string;
|
|
alpha: number;
|
|
alpha: number;
|
|
|
|
+ protected _backFaceCulling: boolean;
|
|
backFaceCulling: boolean;
|
|
backFaceCulling: boolean;
|
|
sideOrientation: number;
|
|
sideOrientation: number;
|
|
onCompiled: (effect: Effect) => void;
|
|
onCompiled: (effect: Effect) => void;
|
|
@@ -5218,6 +5230,7 @@ declare module BABYLON {
|
|
onUnBindObservable: Observable<Material>;
|
|
onUnBindObservable: Observable<Material>;
|
|
alphaMode: number;
|
|
alphaMode: number;
|
|
disableDepthWrite: boolean;
|
|
disableDepthWrite: boolean;
|
|
|
|
+ private _fogEnabled;
|
|
fogEnabled: boolean;
|
|
fogEnabled: boolean;
|
|
pointSize: number;
|
|
pointSize: number;
|
|
zOffset: number;
|
|
zOffset: number;
|
|
@@ -5267,6 +5280,7 @@ declare module BABYLON {
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class MaterialHelper {
|
|
class MaterialHelper {
|
|
|
|
+ static PrepareDefinesForAttributes(mesh: AbstractMesh, defines: MaterialDefines, useInstances: boolean): void;
|
|
static PrepareDefinesForLights(scene: Scene, mesh: AbstractMesh, defines: MaterialDefines, maxSimultaneousLights?: number, disableLighting?: boolean): boolean;
|
|
static PrepareDefinesForLights(scene: Scene, mesh: AbstractMesh, defines: MaterialDefines, maxSimultaneousLights?: number, disableLighting?: boolean): boolean;
|
|
static PrepareUniformsAndSamplersList(uniformsList: string[], samplersList: string[], defines: MaterialDefines, maxSimultaneousLights?: number): void;
|
|
static PrepareUniformsAndSamplersList(uniformsList: string[], samplersList: string[], defines: MaterialDefines, maxSimultaneousLights?: number): void;
|
|
static HandleFallbacksForShadows(defines: MaterialDefines, fallbacks: EffectFallbacks, maxSimultaneousLights?: number): void;
|
|
static HandleFallbacksForShadows(defines: MaterialDefines, fallbacks: EffectFallbacks, maxSimultaneousLights?: number): void;
|
|
@@ -5724,7 +5738,7 @@ declare module BABYLON {
|
|
CAMERACOLORCURVES: boolean;
|
|
CAMERACOLORCURVES: boolean;
|
|
_areTexturesDirty: boolean;
|
|
_areTexturesDirty: boolean;
|
|
_areFresnelDirty: boolean;
|
|
_areFresnelDirty: boolean;
|
|
- _needUVs: boolean;
|
|
|
|
|
|
+ _areMiscDirty: boolean;
|
|
constructor();
|
|
constructor();
|
|
setReflectionMode(modeToEnable: string): void;
|
|
setReflectionMode(modeToEnable: string): void;
|
|
}
|
|
}
|
|
@@ -5752,19 +5766,28 @@ declare module BABYLON {
|
|
specularColor: Color3;
|
|
specularColor: Color3;
|
|
emissiveColor: Color3;
|
|
emissiveColor: Color3;
|
|
specularPower: number;
|
|
specularPower: number;
|
|
|
|
+ private _useAlphaFromDiffuseTexture;
|
|
useAlphaFromDiffuseTexture: boolean;
|
|
useAlphaFromDiffuseTexture: boolean;
|
|
|
|
+ private _useEmissiveAsIllumination;
|
|
useEmissiveAsIllumination: boolean;
|
|
useEmissiveAsIllumination: boolean;
|
|
|
|
+ private _linkEmissiveWithDiffuse;
|
|
linkEmissiveWithDiffuse: boolean;
|
|
linkEmissiveWithDiffuse: boolean;
|
|
|
|
+ private _useSpecularOverAlpha;
|
|
useSpecularOverAlpha: boolean;
|
|
useSpecularOverAlpha: boolean;
|
|
|
|
+ private _useReflectionOverAlpha;
|
|
useReflectionOverAlpha: boolean;
|
|
useReflectionOverAlpha: boolean;
|
|
private _disableLighting;
|
|
private _disableLighting;
|
|
disableLighting: boolean;
|
|
disableLighting: boolean;
|
|
|
|
+ private _useParallax;
|
|
useParallax: boolean;
|
|
useParallax: boolean;
|
|
|
|
+ private _useParallaxOcclusion;
|
|
useParallaxOcclusion: boolean;
|
|
useParallaxOcclusion: boolean;
|
|
parallaxScaleBias: number;
|
|
parallaxScaleBias: number;
|
|
|
|
+ private _roughness;
|
|
roughness: number;
|
|
roughness: number;
|
|
indexOfRefraction: number;
|
|
indexOfRefraction: number;
|
|
invertRefractionY: boolean;
|
|
invertRefractionY: boolean;
|
|
|
|
+ private _useLightmapAsShadowmap;
|
|
useLightmapAsShadowmap: boolean;
|
|
useLightmapAsShadowmap: boolean;
|
|
private _diffuseFresnelParameters;
|
|
private _diffuseFresnelParameters;
|
|
diffuseFresnelParameters: FresnelParameters;
|
|
diffuseFresnelParameters: FresnelParameters;
|
|
@@ -5778,20 +5801,26 @@ declare module BABYLON {
|
|
emissiveFresnelParameters: FresnelParameters;
|
|
emissiveFresnelParameters: FresnelParameters;
|
|
private _useReflectionFresnelFromSpecular;
|
|
private _useReflectionFresnelFromSpecular;
|
|
useReflectionFresnelFromSpecular: boolean;
|
|
useReflectionFresnelFromSpecular: boolean;
|
|
|
|
+ private _useGlossinessFromSpecularMapAlpha;
|
|
useGlossinessFromSpecularMapAlpha: boolean;
|
|
useGlossinessFromSpecularMapAlpha: boolean;
|
|
|
|
+ private _maxSimultaneousLights;
|
|
maxSimultaneousLights: number;
|
|
maxSimultaneousLights: number;
|
|
/**
|
|
/**
|
|
* If sets to true, x component of normal map value will invert (x = 1.0 - x).
|
|
* If sets to true, x component of normal map value will invert (x = 1.0 - x).
|
|
*/
|
|
*/
|
|
|
|
+ private _invertNormalMapX;
|
|
invertNormalMapX: boolean;
|
|
invertNormalMapX: boolean;
|
|
/**
|
|
/**
|
|
* If sets to true, y component of normal map value will invert (y = 1.0 - y).
|
|
* If sets to true, y component of normal map value will invert (y = 1.0 - y).
|
|
*/
|
|
*/
|
|
|
|
+ private _invertNormalMapY;
|
|
invertNormalMapY: boolean;
|
|
invertNormalMapY: boolean;
|
|
/**
|
|
/**
|
|
* If sets to true and backfaceCulling is false, normals will be flipped on the backside.
|
|
* If sets to true and backfaceCulling is false, normals will be flipped on the backside.
|
|
*/
|
|
*/
|
|
|
|
+ private _twoSidedLighting;
|
|
twoSidedLighting: boolean;
|
|
twoSidedLighting: boolean;
|
|
|
|
+ readonly inverttwoSidedLightingNormalMapY: boolean;
|
|
/**
|
|
/**
|
|
* Color Grading 2D Lookup Texture.
|
|
* Color Grading 2D Lookup Texture.
|
|
* This allows special effects like sepia, black and white to sixties rendering style.
|
|
* This allows special effects like sepia, black and white to sixties rendering style.
|
|
@@ -5804,11 +5833,11 @@ declare module BABYLON {
|
|
* These are similar to controls found in many professional imaging or colorist software. The global controls are applied to the entire image. For advanced tuning, extra controls are provided to adjust the shadow, midtone and highlight areas of the image;
|
|
* These are similar to controls found in many professional imaging or colorist software. The global controls are applied to the entire image. For advanced tuning, extra controls are provided to adjust the shadow, midtone and highlight areas of the image;
|
|
* corresponding to low luminance, medium luminance, and high luminance areas respectively.
|
|
* corresponding to low luminance, medium luminance, and high luminance areas respectively.
|
|
*/
|
|
*/
|
|
|
|
+ private _cameraColorCurves;
|
|
cameraColorCurves: ColorCurves;
|
|
cameraColorCurves: ColorCurves;
|
|
protected _renderTargets: SmartArray<RenderTargetTexture>;
|
|
protected _renderTargets: SmartArray<RenderTargetTexture>;
|
|
protected _worldViewProjectionMatrix: Matrix;
|
|
protected _worldViewProjectionMatrix: Matrix;
|
|
protected _globalAmbientColor: Color3;
|
|
protected _globalAmbientColor: Color3;
|
|
- protected _renderId: number;
|
|
|
|
protected _useLogarithmicDepth: boolean;
|
|
protected _useLogarithmicDepth: boolean;
|
|
constructor(name: string, scene: Scene);
|
|
constructor(name: string, scene: Scene);
|
|
private _activeEffect;
|
|
private _activeEffect;
|
|
@@ -5833,9 +5862,12 @@ declare module BABYLON {
|
|
dispose(forceDisposeEffect?: boolean, forceDisposeTextures?: boolean): void;
|
|
dispose(forceDisposeEffect?: boolean, forceDisposeTextures?: boolean): void;
|
|
clone(name: string): StandardMaterial;
|
|
clone(name: string): StandardMaterial;
|
|
serialize(): any;
|
|
serialize(): any;
|
|
- private _markAllSubMeshesAsTextureDirty();
|
|
|
|
|
|
+ private _markAllSubMeshesAsDirty(func);
|
|
|
|
+ private _markAllSubMeshesAsTexturesDirty();
|
|
private _markAllSubMeshesAsFresnelDirty();
|
|
private _markAllSubMeshesAsFresnelDirty();
|
|
- private _markAllSubMeshesAsLightDirty();
|
|
|
|
|
|
+ private _markAllSubMeshesAsLightsDirty();
|
|
|
|
+ private _markAllSubMeshesAsAttributesDirty();
|
|
|
|
+ private _markAllSubMeshesAsMiscDirty();
|
|
static Parse(source: any, scene: Scene, rootUrl: string): StandardMaterial;
|
|
static Parse(source: any, scene: Scene, rootUrl: string): StandardMaterial;
|
|
static _DiffuseTextureEnabled: boolean;
|
|
static _DiffuseTextureEnabled: boolean;
|
|
static DiffuseTextureEnabled: boolean;
|
|
static DiffuseTextureEnabled: boolean;
|
|
@@ -7957,12 +7989,17 @@ declare module BABYLON {
|
|
renderOverlay: boolean;
|
|
renderOverlay: boolean;
|
|
overlayColor: Color3;
|
|
overlayColor: Color3;
|
|
overlayAlpha: number;
|
|
overlayAlpha: number;
|
|
|
|
+ private _hasVertexAlpha;
|
|
hasVertexAlpha: boolean;
|
|
hasVertexAlpha: boolean;
|
|
|
|
+ private _useVertexColors;
|
|
useVertexColors: boolean;
|
|
useVertexColors: boolean;
|
|
- applyFog: boolean;
|
|
|
|
|
|
+ private _computeBonesUsingShaders;
|
|
computeBonesUsingShaders: boolean;
|
|
computeBonesUsingShaders: boolean;
|
|
- scalingDeterminant: number;
|
|
|
|
|
|
+ private _numBoneInfluencers;
|
|
numBoneInfluencers: number;
|
|
numBoneInfluencers: number;
|
|
|
|
+ private _applyFog;
|
|
|
|
+ applyFog: boolean;
|
|
|
|
+ scalingDeterminant: number;
|
|
useOctreeForRenderingSelection: boolean;
|
|
useOctreeForRenderingSelection: boolean;
|
|
useOctreeForPicking: boolean;
|
|
useOctreeForPicking: boolean;
|
|
useOctreeForCollisions: boolean;
|
|
useOctreeForCollisions: boolean;
|
|
@@ -8028,7 +8065,10 @@ declare module BABYLON {
|
|
_resyncLightSources(): void;
|
|
_resyncLightSources(): void;
|
|
_resyncLighSource(light: Light): void;
|
|
_resyncLighSource(light: Light): void;
|
|
_removeLightSource(light: Light): void;
|
|
_removeLightSource(light: Light): void;
|
|
|
|
+ private _markSubMeshesAsDirty(func);
|
|
_markSubMeshesAsLightDirty(): void;
|
|
_markSubMeshesAsLightDirty(): void;
|
|
|
|
+ _markSubMeshesAsAttributesDirty(): void;
|
|
|
|
+ _markSubMeshesAsMiscDirty(): void;
|
|
/**
|
|
/**
|
|
* Rotation property : a Vector3 depicting the rotation value in radians around each local axis X, Y, Z.
|
|
* Rotation property : a Vector3 depicting the rotation value in radians around each local axis X, Y, Z.
|
|
* If rotation quaternion is set, this Vector3 will (almost always) be the Zero vector!
|
|
* If rotation quaternion is set, this Vector3 will (almost always) be the Zero vector!
|
|
@@ -14666,10 +14706,12 @@ declare module BABYLON.Internals {
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class BaseTexture {
|
|
class BaseTexture {
|
|
name: string;
|
|
name: string;
|
|
|
|
+ private _hasAlpha;
|
|
hasAlpha: boolean;
|
|
hasAlpha: boolean;
|
|
getAlphaFromRGB: boolean;
|
|
getAlphaFromRGB: boolean;
|
|
level: number;
|
|
level: number;
|
|
coordinatesIndex: number;
|
|
coordinatesIndex: number;
|
|
|
|
+ private _coordinatesMode;
|
|
coordinatesMode: number;
|
|
coordinatesMode: number;
|
|
wrapU: number;
|
|
wrapU: number;
|
|
wrapV: number;
|
|
wrapV: number;
|