|
@@ -339,7 +339,7 @@ declare module BABYLON {
|
|
generateMipMapsForCubemap(texture: WebGLTexture): void;
|
|
generateMipMapsForCubemap(texture: WebGLTexture): void;
|
|
flushFramebuffer(): void;
|
|
flushFramebuffer(): void;
|
|
restoreDefaultFramebuffer(): void;
|
|
restoreDefaultFramebuffer(): void;
|
|
- createUniformBuffer(formattedUniforms: number[] | Float32Array): WebGLBuffer;
|
|
|
|
|
|
+ createUniformBuffer(size: number): WebGLBuffer;
|
|
private _resetVertexBufferBinding();
|
|
private _resetVertexBufferBinding();
|
|
createVertexBuffer(vertices: number[] | Float32Array): WebGLBuffer;
|
|
createVertexBuffer(vertices: number[] | Float32Array): WebGLBuffer;
|
|
createDynamicVertexBuffer(vertices: number[] | Float32Array): WebGLBuffer;
|
|
createDynamicVertexBuffer(vertices: number[] | Float32Array): WebGLBuffer;
|
|
@@ -382,7 +382,7 @@ declare module BABYLON {
|
|
bindUniformBlock(shaderProgram: WebGLProgram): void;
|
|
bindUniformBlock(shaderProgram: WebGLProgram): void;
|
|
getAttributes(shaderProgram: WebGLProgram, attributesNames: string[]): number[];
|
|
getAttributes(shaderProgram: WebGLProgram, attributesNames: string[]): number[];
|
|
enableEffect(effect: Effect): void;
|
|
enableEffect(effect: Effect): void;
|
|
- setUniformBuffer(ubo: WebGLBuffer, array: Float32Array): void;
|
|
|
|
|
|
+ updateUniformBuffer(ubo: WebGLBuffer, array: Float32Array): void;
|
|
setIntArray(uniform: WebGLUniformLocation, array: Int32Array): void;
|
|
setIntArray(uniform: WebGLUniformLocation, array: Int32Array): void;
|
|
setIntArray2(uniform: WebGLUniformLocation, array: Int32Array): void;
|
|
setIntArray2(uniform: WebGLUniformLocation, array: Int32Array): void;
|
|
setIntArray3(uniform: WebGLUniformLocation, array: Int32Array): void;
|
|
setIntArray3(uniform: WebGLUniformLocation, array: Int32Array): void;
|
|
@@ -3959,6 +3959,102 @@ 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;
|
|
|
|
+ }): 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
|
|
@@ -4214,102 +4310,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;
|
|
|
|
- }): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
- class RayHelper {
|
|
|
|
- ray: Ray;
|
|
|
|
- private _renderPoints;
|
|
|
|
- private _renderLine;
|
|
|
|
- private _renderFunction;
|
|
|
|
- private _scene;
|
|
|
|
- private _updateToMeshFunction;
|
|
|
|
- private _attachedToMesh;
|
|
|
|
- private _meshSpaceDirection;
|
|
|
|
- private _meshSpaceOrigin;
|
|
|
|
- static CreateAndShow(ray: Ray, scene: Scene, color: Color3): RayHelper;
|
|
|
|
- constructor(ray: Ray);
|
|
|
|
- show(scene: Scene, color: Color3): void;
|
|
|
|
- hide(): void;
|
|
|
|
- private _render();
|
|
|
|
- attachToMesh(mesh: AbstractMesh, meshSpaceDirection?: Vector3, meshSpaceOrigin?: Vector3, length?: number): void;
|
|
|
|
- detachFromMesh(): void;
|
|
|
|
- private _updateToMesh();
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON.Debug {
|
|
|
|
- /**
|
|
|
|
- * Demo available here: http://www.babylonjs-playground.com/#1BZJVJ#8
|
|
|
|
- */
|
|
|
|
- class SkeletonViewer {
|
|
|
|
- skeleton: Skeleton;
|
|
|
|
- mesh: AbstractMesh;
|
|
|
|
- autoUpdateBonesMatrices: boolean;
|
|
|
|
- renderingGroupId: number;
|
|
|
|
- color: Color3;
|
|
|
|
- private _scene;
|
|
|
|
- private _debugLines;
|
|
|
|
- private _debugMesh;
|
|
|
|
- private _isEnabled;
|
|
|
|
- private _renderFunction;
|
|
|
|
- constructor(skeleton: Skeleton, mesh: AbstractMesh, scene: Scene, autoUpdateBonesMatrices?: boolean, renderingGroupId?: number);
|
|
|
|
- isEnabled: boolean;
|
|
|
|
- private _getBonePosition(position, bone, meshMat, x?, y?, z?);
|
|
|
|
- private _getLinesForBonesWithLength(bones, meshMat);
|
|
|
|
- private _getLinesForBonesNoLength(bones, meshMat);
|
|
|
|
- update(): void;
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class LensFlare {
|
|
class LensFlare {
|
|
size: number;
|
|
size: number;
|
|
@@ -4726,58 +4726,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- interface ISceneLoaderPluginExtensions {
|
|
|
|
- [extension: string]: {
|
|
|
|
- isBinary: boolean;
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
- interface ISceneLoaderPlugin {
|
|
|
|
- extensions: string | ISceneLoaderPluginExtensions;
|
|
|
|
- importMesh: (meshesNames: any, scene: Scene, data: any, rootUrl: string, meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => boolean;
|
|
|
|
- load: (scene: Scene, data: string, rootUrl: string) => boolean;
|
|
|
|
- }
|
|
|
|
- interface ISceneLoaderPluginAsync {
|
|
|
|
- extensions: string | ISceneLoaderPluginExtensions;
|
|
|
|
- importMeshAsync: (meshesNames: any, scene: Scene, data: any, rootUrl: string, onsuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, onerror?: () => void) => void;
|
|
|
|
- loadAsync: (scene: Scene, data: string, rootUrl: string, onsuccess: () => void, onerror: () => void) => boolean;
|
|
|
|
- }
|
|
|
|
- class SceneLoader {
|
|
|
|
- private static _ForceFullSceneLoadingForIncremental;
|
|
|
|
- private static _ShowLoadingScreen;
|
|
|
|
- static readonly NO_LOGGING: number;
|
|
|
|
- static readonly MINIMAL_LOGGING: number;
|
|
|
|
- static readonly SUMMARY_LOGGING: number;
|
|
|
|
- static readonly DETAILED_LOGGING: number;
|
|
|
|
- private static _loggingLevel;
|
|
|
|
- static ForceFullSceneLoadingForIncremental: boolean;
|
|
|
|
- static ShowLoadingScreen: boolean;
|
|
|
|
- static loggingLevel: number;
|
|
|
|
- private static _registeredPlugins;
|
|
|
|
- private static _getDefaultPlugin();
|
|
|
|
- private static _getPluginForExtension(extension);
|
|
|
|
- private static _getPluginForFilename(sceneFilename);
|
|
|
|
- private static _getDirectLoad(sceneFilename);
|
|
|
|
- static GetPluginForExtension(extension: string): ISceneLoaderPlugin | ISceneLoaderPluginAsync;
|
|
|
|
- static RegisterPlugin(plugin: ISceneLoaderPlugin | ISceneLoaderPluginAsync): void;
|
|
|
|
- static ImportMesh(meshesNames: any, rootUrl: string, sceneFilename: string, scene: Scene, onsuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, progressCallBack?: () => void, onerror?: (scene: Scene, message: string, exception?: any) => void): void;
|
|
|
|
- /**
|
|
|
|
- * Load a scene
|
|
|
|
- * @param rootUrl a string that defines the root url for scene and resources
|
|
|
|
- * @param sceneFilename a string that defines the name of the scene file. can start with "data:" following by the stringified version of the scene
|
|
|
|
- * @param engine is the instance of BABYLON.Engine to use to create the scene
|
|
|
|
- */
|
|
|
|
- static Load(rootUrl: string, sceneFilename: any, engine: Engine, onsuccess?: (scene: Scene) => void, progressCallBack?: any, onerror?: (scene: Scene) => void): void;
|
|
|
|
- /**
|
|
|
|
- * Append a scene
|
|
|
|
- * @param rootUrl a string that defines the root url for scene and resources
|
|
|
|
- * @param sceneFilename a string that defines the name of the scene file. can start with "data:" following by the stringified version of the scene
|
|
|
|
- * @param scene is the instance of BABYLON.Scene to append to
|
|
|
|
- */
|
|
|
|
- static Append(rootUrl: string, sceneFilename: any, scene: Scene, onsuccess?: (scene: Scene) => void, progressCallBack?: any, onerror?: (scene: Scene) => void): void;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-declare module BABYLON {
|
|
|
|
/**
|
|
/**
|
|
* The color grading curves provide additional color adjustmnent that is applied after any color grading transform (3D LUT).
|
|
* The color grading curves provide additional color adjustmnent that is applied after any color grading transform (3D LUT).
|
|
* They allow basic adjustment of saturation and small exposure adjustments, along with color filter tinting to provide white balance adjustment or more stylistic effects.
|
|
* They allow basic adjustment of saturation and small exposure adjustments, along with color filter tinting to provide white balance adjustment or more stylistic effects.
|
|
@@ -5035,16 +4983,11 @@ declare module BABYLON {
|
|
private static _uniqueIdSeed;
|
|
private static _uniqueIdSeed;
|
|
private _engine;
|
|
private _engine;
|
|
private _uniformsNames;
|
|
private _uniformsNames;
|
|
- private _uniformBufferDynamic;
|
|
|
|
- private _uniformBufferStatic;
|
|
|
|
- private _uniformBufferDynamicCache;
|
|
|
|
- private _uniformBufferStaticCache;
|
|
|
|
- private _uniformBufferDynamicNames;
|
|
|
|
- private _uniformBufferDynamicLocations;
|
|
|
|
- private _uniformBufferStaticNames;
|
|
|
|
- private _uniformBufferStaticLocations;
|
|
|
|
- private _uniformCurrentStaticPointer;
|
|
|
|
- private _uniformCurrentDynamicPointer;
|
|
|
|
|
|
+ private _uniformBuffer;
|
|
|
|
+ private _uniformBufferCache;
|
|
|
|
+ private _uniformBufferNames;
|
|
|
|
+ private _uniformBufferLocations;
|
|
|
|
+ private _uniformCurrentPointer;
|
|
private _uniformOrder;
|
|
private _uniformOrder;
|
|
private _samplers;
|
|
private _samplers;
|
|
private _isReady;
|
|
private _isReady;
|
|
@@ -5066,8 +5009,7 @@ declare module BABYLON {
|
|
getAttributesCount(): number;
|
|
getAttributesCount(): number;
|
|
getUniformIndex(uniformName: string): number;
|
|
getUniformIndex(uniformName: string): number;
|
|
getUniform(uniformName: string): WebGLUniformLocation;
|
|
getUniform(uniformName: string): WebGLUniformLocation;
|
|
- getUniformWithinDynamicUbo(uniformName: string): number;
|
|
|
|
- getUniformWithinStaticUbo(uniformName: string): number;
|
|
|
|
|
|
+ getUniformWithinUbo(uniformName: string): number;
|
|
getSamplers(): string[];
|
|
getSamplers(): string[];
|
|
getCompilationError(): string;
|
|
getCompilationError(): string;
|
|
getVertexShaderSource(): string;
|
|
getVertexShaderSource(): string;
|
|
@@ -5078,6 +5020,7 @@ declare module BABYLON {
|
|
private _processShaderConversion(sourceCode, isFragment, callback);
|
|
private _processShaderConversion(sourceCode, isFragment, callback);
|
|
private _processIncludes(sourceCode, callback);
|
|
private _processIncludes(sourceCode, callback);
|
|
private _processPrecision(source);
|
|
private _processPrecision(source);
|
|
|
|
+ buildUniformlayout(): void;
|
|
private _prepareEffect(vertexSourceCode, fragmentSourceCode, attributesNames, defines, fallbacks?);
|
|
private _prepareEffect(vertexSourceCode, fragmentSourceCode, attributesNames, defines, fallbacks?);
|
|
readonly isSupported: boolean;
|
|
readonly isSupported: boolean;
|
|
_bindTexture(channel: string, texture: WebGLTexture): void;
|
|
_bindTexture(channel: string, texture: WebGLTexture): void;
|
|
@@ -5088,11 +5031,9 @@ declare module BABYLON {
|
|
_cacheFloat2(uniformName: string, x: number, y: number): boolean;
|
|
_cacheFloat2(uniformName: string, x: number, y: number): boolean;
|
|
_cacheFloat3(uniformName: string, x: number, y: number, z: number): boolean;
|
|
_cacheFloat3(uniformName: string, x: number, y: number, z: number): boolean;
|
|
_cacheFloat4(uniformName: string, x: number, y: number, z: number, w: number): boolean;
|
|
_cacheFloat4(uniformName: string, x: number, y: number, z: number, w: number): boolean;
|
|
- formatUniforms(length: number): Float32Array;
|
|
|
|
- addUniform(name: string, size: number, dynamic: boolean): void;
|
|
|
|
- updateUniformBufferStatic(): void;
|
|
|
|
- updateUniformBufferDynamic(): void;
|
|
|
|
- bindUniformBuffers(): void;
|
|
|
|
|
|
+ addUniform(name: string, size: number): void;
|
|
|
|
+ updateUniformBuffer(): void;
|
|
|
|
+ bindUniformBuffer(): void;
|
|
bindUniformBlock(): void;
|
|
bindUniformBlock(): void;
|
|
setIntArray(uniformName: string, array: Int32Array): Effect;
|
|
setIntArray(uniformName: string, array: Int32Array): Effect;
|
|
setIntArray2(uniformName: string, array: Int32Array): Effect;
|
|
setIntArray2(uniformName: string, array: Int32Array): Effect;
|
|
@@ -5793,6 +5734,58 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ interface ISceneLoaderPluginExtensions {
|
|
|
|
+ [extension: string]: {
|
|
|
|
+ isBinary: boolean;
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+ interface ISceneLoaderPlugin {
|
|
|
|
+ extensions: string | ISceneLoaderPluginExtensions;
|
|
|
|
+ importMesh: (meshesNames: any, scene: Scene, data: any, rootUrl: string, meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => boolean;
|
|
|
|
+ load: (scene: Scene, data: string, rootUrl: string) => boolean;
|
|
|
|
+ }
|
|
|
|
+ interface ISceneLoaderPluginAsync {
|
|
|
|
+ extensions: string | ISceneLoaderPluginExtensions;
|
|
|
|
+ importMeshAsync: (meshesNames: any, scene: Scene, data: any, rootUrl: string, onsuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, onerror?: () => void) => void;
|
|
|
|
+ loadAsync: (scene: Scene, data: string, rootUrl: string, onsuccess: () => void, onerror: () => void) => boolean;
|
|
|
|
+ }
|
|
|
|
+ class SceneLoader {
|
|
|
|
+ private static _ForceFullSceneLoadingForIncremental;
|
|
|
|
+ private static _ShowLoadingScreen;
|
|
|
|
+ static readonly NO_LOGGING: number;
|
|
|
|
+ static readonly MINIMAL_LOGGING: number;
|
|
|
|
+ static readonly SUMMARY_LOGGING: number;
|
|
|
|
+ static readonly DETAILED_LOGGING: number;
|
|
|
|
+ private static _loggingLevel;
|
|
|
|
+ static ForceFullSceneLoadingForIncremental: boolean;
|
|
|
|
+ static ShowLoadingScreen: boolean;
|
|
|
|
+ static loggingLevel: number;
|
|
|
|
+ private static _registeredPlugins;
|
|
|
|
+ private static _getDefaultPlugin();
|
|
|
|
+ private static _getPluginForExtension(extension);
|
|
|
|
+ private static _getPluginForFilename(sceneFilename);
|
|
|
|
+ private static _getDirectLoad(sceneFilename);
|
|
|
|
+ static GetPluginForExtension(extension: string): ISceneLoaderPlugin | ISceneLoaderPluginAsync;
|
|
|
|
+ static RegisterPlugin(plugin: ISceneLoaderPlugin | ISceneLoaderPluginAsync): void;
|
|
|
|
+ static ImportMesh(meshesNames: any, rootUrl: string, sceneFilename: string, scene: Scene, onsuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, progressCallBack?: () => void, onerror?: (scene: Scene, message: string, exception?: any) => void): void;
|
|
|
|
+ /**
|
|
|
|
+ * Load a scene
|
|
|
|
+ * @param rootUrl a string that defines the root url for scene and resources
|
|
|
|
+ * @param sceneFilename a string that defines the name of the scene file. can start with "data:" following by the stringified version of the scene
|
|
|
|
+ * @param engine is the instance of BABYLON.Engine to use to create the scene
|
|
|
|
+ */
|
|
|
|
+ static Load(rootUrl: string, sceneFilename: any, engine: Engine, onsuccess?: (scene: Scene) => void, progressCallBack?: any, onerror?: (scene: Scene) => void): void;
|
|
|
|
+ /**
|
|
|
|
+ * Append a scene
|
|
|
|
+ * @param rootUrl a string that defines the root url for scene and resources
|
|
|
|
+ * @param sceneFilename a string that defines the name of the scene file. can start with "data:" following by the stringified version of the scene
|
|
|
|
+ * @param scene is the instance of BABYLON.Scene to append to
|
|
|
|
+ */
|
|
|
|
+ static Append(rootUrl: string, sceneFilename: any, scene: Scene, onsuccess?: (scene: Scene) => void, progressCallBack?: any, onerror?: (scene: Scene) => void): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+declare module BABYLON {
|
|
class SIMDHelper {
|
|
class SIMDHelper {
|
|
private static _isEnabled;
|
|
private static _isEnabled;
|
|
static readonly IsEnabled: boolean;
|
|
static readonly IsEnabled: boolean;
|
|
@@ -6658,7 +6651,7 @@ declare module BABYLON {
|
|
* Populates the passed array from the passed index with the Vector4 coordinates.
|
|
* Populates the passed array from the passed index with the Vector4 coordinates.
|
|
* Returns the Vector4.
|
|
* Returns the Vector4.
|
|
*/
|
|
*/
|
|
- toArray(array: number[], index?: number): Vector4;
|
|
|
|
|
|
+ toArray(array: number[] | Float32Array, index?: number): Vector4;
|
|
/**
|
|
/**
|
|
* Adds the passed vector to the current Vector4.
|
|
* Adds the passed vector to the current Vector4.
|
|
* Returns the updated Vector4.
|
|
* Returns the updated Vector4.
|
|
@@ -14581,9 +14574,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-declare module BABYLON.Internals {
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class BaseTexture {
|
|
class BaseTexture {
|
|
name: string;
|
|
name: string;
|
|
@@ -15122,6 +15112,9 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+declare module BABYLON.Internals {
|
|
|
|
+}
|
|
|
|
+
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
class CannonJSPlugin implements IPhysicsEnginePlugin {
|
|
class CannonJSPlugin implements IPhysicsEnginePlugin {
|
|
private _useDeltaForWorldStep;
|
|
private _useDeltaForWorldStep;
|