|
@@ -14105,7 +14105,7 @@ declare module "babylonjs/Meshes/mesh" {
|
|
instancesData: Float32Array;
|
|
instancesData: Float32Array;
|
|
overridenInstanceCount: number;
|
|
overridenInstanceCount: number;
|
|
isFrozen: boolean;
|
|
isFrozen: boolean;
|
|
- previousBatch: _InstancesBatch;
|
|
|
|
|
|
+ previousBatch: Nullable<_InstancesBatch>;
|
|
hardwareInstancedRendering: boolean;
|
|
hardwareInstancedRendering: boolean;
|
|
sideOrientation: number;
|
|
sideOrientation: number;
|
|
}
|
|
}
|
|
@@ -17608,7 +17608,7 @@ declare module "babylonjs/Gamepads/Controllers/webVRController" {
|
|
*/
|
|
*/
|
|
onButtonStateChange(callback: (controlledIndex: number, buttonIndex: number, state: ExtendedGamepadButton) => void): void;
|
|
onButtonStateChange(callback: (controlledIndex: number, buttonIndex: number, state: ExtendedGamepadButton) => void): void;
|
|
/**
|
|
/**
|
|
- * X and Y axis corrisponding to the controllers joystick
|
|
|
|
|
|
+ * X and Y axis corresponding to the controllers joystick
|
|
*/
|
|
*/
|
|
pad: StickValues;
|
|
pad: StickValues;
|
|
/**
|
|
/**
|
|
@@ -18135,18 +18135,18 @@ declare module "babylonjs/Cameras/VR/webVRCamera" {
|
|
getControllerByName(name: string): Nullable<WebVRController>;
|
|
getControllerByName(name: string): Nullable<WebVRController>;
|
|
private _leftController;
|
|
private _leftController;
|
|
/**
|
|
/**
|
|
- * The controller corrisponding to the users left hand.
|
|
|
|
|
|
+ * The controller corresponding to the users left hand.
|
|
*/
|
|
*/
|
|
readonly leftController: Nullable<WebVRController>;
|
|
readonly leftController: Nullable<WebVRController>;
|
|
private _rightController;
|
|
private _rightController;
|
|
/**
|
|
/**
|
|
- * The controller corrisponding to the users right hand.
|
|
|
|
|
|
+ * The controller corresponding to the users right hand.
|
|
*/
|
|
*/
|
|
readonly rightController: Nullable<WebVRController>;
|
|
readonly rightController: Nullable<WebVRController>;
|
|
/**
|
|
/**
|
|
* Casts a ray forward from the vrCamera's gaze.
|
|
* Casts a ray forward from the vrCamera's gaze.
|
|
* @param length Length of the ray (default: 100)
|
|
* @param length Length of the ray (default: 100)
|
|
- * @returns the ray corrisponding to the gaze
|
|
|
|
|
|
+ * @returns the ray corresponding to the gaze
|
|
*/
|
|
*/
|
|
getForwardRay(length?: number): Ray;
|
|
getForwardRay(length?: number): Ray;
|
|
/**
|
|
/**
|
|
@@ -18464,7 +18464,7 @@ declare module "babylonjs/PostProcesses/postProcess" {
|
|
getEngine(): Engine;
|
|
getEngine(): Engine;
|
|
/**
|
|
/**
|
|
* The effect that is created when initializing the post process.
|
|
* The effect that is created when initializing the post process.
|
|
- * @returns The created effect corrisponding the the postprocess.
|
|
|
|
|
|
+ * @returns The created effect corresponding the the postprocess.
|
|
*/
|
|
*/
|
|
getEffect(): Effect;
|
|
getEffect(): Effect;
|
|
/**
|
|
/**
|
|
@@ -18519,7 +18519,7 @@ declare module "babylonjs/PostProcesses/postProcess" {
|
|
isReady(): boolean;
|
|
isReady(): boolean;
|
|
/**
|
|
/**
|
|
* Binds all textures and uniforms to the shader, this will be run on every pass.
|
|
* Binds all textures and uniforms to the shader, this will be run on every pass.
|
|
- * @returns the effect corrisponding to this post process. Null if not compiled or not ready.
|
|
|
|
|
|
+ * @returns the effect corresponding to this post process. Null if not compiled or not ready.
|
|
*/
|
|
*/
|
|
apply(): Nullable<Effect>;
|
|
apply(): Nullable<Effect>;
|
|
private _disposeTextures;
|
|
private _disposeTextures;
|
|
@@ -19243,7 +19243,7 @@ declare module "babylonjs/Materials/Textures/Procedurals/proceduralTexture" {
|
|
constructor(name: string, size: any, fragment: any, scene: Nullable<Scene>, fallbackTexture?: Nullable<Texture>, generateMipMaps?: boolean, isCube?: boolean);
|
|
constructor(name: string, size: any, fragment: any, scene: Nullable<Scene>, fallbackTexture?: Nullable<Texture>, generateMipMaps?: boolean, isCube?: boolean);
|
|
/**
|
|
/**
|
|
* The effect that is created when initializing the post process.
|
|
* The effect that is created when initializing the post process.
|
|
- * @returns The created effect corrisponding the the postprocess.
|
|
|
|
|
|
+ * @returns The created effect corresponding the the postprocess.
|
|
*/
|
|
*/
|
|
getEffect(): Effect;
|
|
getEffect(): Effect;
|
|
/**
|
|
/**
|
|
@@ -29648,7 +29648,16 @@ declare module "babylonjs/Engines/engine" {
|
|
* @returns a InternalTexture for assignment back into BABYLON.Texture
|
|
* @returns a InternalTexture for assignment back into BABYLON.Texture
|
|
*/
|
|
*/
|
|
createTexture(urlArg: Nullable<string>, noMipmap: boolean, invertY: boolean, scene: Nullable<Scene>, samplingMode?: number, onLoad?: Nullable<() => void>, onError?: Nullable<(message: string, exception: any) => void>, buffer?: Nullable<string | ArrayBuffer | HTMLImageElement | Blob>, fallback?: Nullable<InternalTexture>, format?: Nullable<number>, forcedExtension?: Nullable<string>, excludeLoaders?: Array<IInternalTextureLoader>): InternalTexture;
|
|
createTexture(urlArg: Nullable<string>, noMipmap: boolean, invertY: boolean, scene: Nullable<Scene>, samplingMode?: number, onLoad?: Nullable<() => void>, onError?: Nullable<(message: string, exception: any) => void>, buffer?: Nullable<string | ArrayBuffer | HTMLImageElement | Blob>, fallback?: Nullable<InternalTexture>, format?: Nullable<number>, forcedExtension?: Nullable<string>, excludeLoaders?: Array<IInternalTextureLoader>): InternalTexture;
|
|
- private _rescaleTexture;
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @hidden
|
|
|
|
+ * Rescales a texture
|
|
|
|
+ * @param source input texutre
|
|
|
|
+ * @param destination destination texture
|
|
|
|
+ * @param scene scene to use to render the resize
|
|
|
|
+ * @param internalFormat format to use when resizing
|
|
|
|
+ * @param onComplete callback to be called when resize has completed
|
|
|
|
+ */
|
|
|
|
+ _rescaleTexture(source: InternalTexture, destination: InternalTexture, scene: Nullable<Scene>, internalFormat: number, onComplete: () => void): void;
|
|
private _unpackFlipYCached;
|
|
private _unpackFlipYCached;
|
|
/**
|
|
/**
|
|
* In case you are sharing the context with other applications, it might
|
|
* In case you are sharing the context with other applications, it might
|
|
@@ -29752,7 +29761,7 @@ declare module "babylonjs/Engines/engine" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_uploadCompressedDataToTextureDirectly(texture: InternalTexture, internalFormat: number, width: number, height: number, data: ArrayBufferView, faceIndex?: number, lod?: number): void;
|
|
_uploadCompressedDataToTextureDirectly(texture: InternalTexture, internalFormat: number, width: number, height: number, data: ArrayBufferView, faceIndex?: number, lod?: number): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _uploadDataToTextureDirectly(texture: InternalTexture, imageData: ArrayBufferView, faceIndex?: number, lod?: number): void;
|
|
|
|
|
|
+ _uploadDataToTextureDirectly(texture: InternalTexture, imageData: ArrayBufferView, faceIndex?: number, lod?: number, babylonInternalFormat?: number, useTextureWidthAndHeight?: boolean): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_uploadArrayBufferViewToTexture(texture: InternalTexture, imageData: ArrayBufferView, faceIndex?: number, lod?: number): void;
|
|
_uploadArrayBufferViewToTexture(texture: InternalTexture, imageData: ArrayBufferView, faceIndex?: number, lod?: number): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -32116,7 +32125,7 @@ declare module "babylonjs/Misc/tools" {
|
|
* @param scriptId defines the id of the script element
|
|
* @param scriptId defines the id of the script element
|
|
* @returns a promise request object
|
|
* @returns a promise request object
|
|
*/
|
|
*/
|
|
- static LoadScriptAsync(scriptUrl: string, scriptId?: string): Nullable<Promise<boolean>>;
|
|
|
|
|
|
+ static LoadScriptAsync(scriptUrl: string, scriptId?: string): Promise<boolean>;
|
|
/**
|
|
/**
|
|
* Loads a file from a blob
|
|
* Loads a file from a blob
|
|
* @param fileToLoad defines the blob to use
|
|
* @param fileToLoad defines the blob to use
|
|
@@ -40468,7 +40477,7 @@ declare module "babylonjs/Materials/standardMaterial" {
|
|
*/
|
|
*/
|
|
roughness: number;
|
|
roughness: number;
|
|
/**
|
|
/**
|
|
- * In case of refraction, define the value of the indice of refraction.
|
|
|
|
|
|
+ * In case of refraction, define the value of the index of refraction.
|
|
* @see http://doc.babylonjs.com/how_to/reflect#how-to-obtain-reflections-and-refractions
|
|
* @see http://doc.babylonjs.com/how_to/reflect#how-to-obtain-reflections-and-refractions
|
|
*/
|
|
*/
|
|
indexOfRefraction: number;
|
|
indexOfRefraction: number;
|
|
@@ -46265,7 +46274,7 @@ declare module "babylonjs/Materials/PBR/pbrClearCoatConfiguration" {
|
|
* This defaults to 1.5 corresponding to a 0.04 f0 or a 4% reflectance at normal incidence
|
|
* This defaults to 1.5 corresponding to a 0.04 f0 or a 4% reflectance at normal incidence
|
|
* The default fits with a polyurethane material.
|
|
* The default fits with a polyurethane material.
|
|
*/
|
|
*/
|
|
- private static readonly _DefaultIndiceOfRefraction;
|
|
|
|
|
|
+ private static readonly _DefaultIndexOfRefraction;
|
|
private _isEnabled;
|
|
private _isEnabled;
|
|
/**
|
|
/**
|
|
* Defines if the clear coat is enabled in the material.
|
|
* Defines if the clear coat is enabled in the material.
|
|
@@ -46279,14 +46288,14 @@ declare module "babylonjs/Materials/PBR/pbrClearCoatConfiguration" {
|
|
* Defines the clear coat layer roughness.
|
|
* Defines the clear coat layer roughness.
|
|
*/
|
|
*/
|
|
roughness: number;
|
|
roughness: number;
|
|
- private _indiceOfRefraction;
|
|
|
|
|
|
+ private _indexOfRefraction;
|
|
/**
|
|
/**
|
|
- * Defines the indice of refraction of the clear coat.
|
|
|
|
|
|
+ * Defines the index of refraction of the clear coat.
|
|
* This defaults to 1.5 corresponding to a 0.04 f0 or a 4% reflectance at normal incidence
|
|
* This defaults to 1.5 corresponding to a 0.04 f0 or a 4% reflectance at normal incidence
|
|
* The default fits with a polyurethane material.
|
|
* The default fits with a polyurethane material.
|
|
* Changing the default value is more performance intensive.
|
|
* Changing the default value is more performance intensive.
|
|
*/
|
|
*/
|
|
- indiceOfRefraction: number;
|
|
|
|
|
|
+ indexOfRefraction: number;
|
|
private _texture;
|
|
private _texture;
|
|
/**
|
|
/**
|
|
* Stores the clear coat values in a texture.
|
|
* Stores the clear coat values in a texture.
|
|
@@ -46882,7 +46891,7 @@ declare module "babylonjs/Materials/PBR/pbrSubSurfaceConfiguration" {
|
|
refractionTexture: Nullable<BaseTexture>;
|
|
refractionTexture: Nullable<BaseTexture>;
|
|
private _indexOfRefraction;
|
|
private _indexOfRefraction;
|
|
/**
|
|
/**
|
|
- * Defines the indice of refraction used in the material.
|
|
|
|
|
|
+ * Defines the index of refraction used in the material.
|
|
* https://en.wikipedia.org/wiki/List_of_refractive_indices
|
|
* https://en.wikipedia.org/wiki/List_of_refractive_indices
|
|
*/
|
|
*/
|
|
indexOfRefraction: number;
|
|
indexOfRefraction: number;
|
|
@@ -52222,11 +52231,163 @@ declare module "babylonjs/Materials/Textures/Loaders/tgaTextureLoader" {
|
|
loadData(data: ArrayBuffer, texture: InternalTexture, callback: (width: number, height: number, loadMipmap: boolean, isCompressed: boolean, done: () => void) => void): void;
|
|
loadData(data: ArrayBuffer, texture: InternalTexture, callback: (width: number, height: number, loadMipmap: boolean, isCompressed: boolean, done: () => void) => void): void;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+declare module "babylonjs/Misc/basis" {
|
|
|
|
+ import { Nullable } from "babylonjs/types";
|
|
|
|
+ import { Engine } from "babylonjs/Engines/engine";
|
|
|
|
+ /**
|
|
|
|
+ * Info about the .basis files
|
|
|
|
+ */
|
|
|
|
+ class BasisFileInfo {
|
|
|
|
+ /**
|
|
|
|
+ * If the file has alpha
|
|
|
|
+ */
|
|
|
|
+ hasAlpha: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Width of the image
|
|
|
|
+ */
|
|
|
|
+ width: number;
|
|
|
|
+ /**
|
|
|
|
+ * Height of the image
|
|
|
|
+ */
|
|
|
|
+ height: number;
|
|
|
|
+ /**
|
|
|
|
+ * Aligned width used when falling back to Rgb565 ((width + 3) & ~3)
|
|
|
|
+ */
|
|
|
|
+ alignedWidth: number;
|
|
|
|
+ /**
|
|
|
|
+ * Aligned height used when falling back to Rgb565 ((height + 3) & ~3)
|
|
|
|
+ */
|
|
|
|
+ alignedHeight: number;
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
|
|
+ * Used to load .Basis files
|
|
|
|
+ * See https://github.com/BinomialLLC/basis_universal/tree/master/webgl
|
|
|
|
+ */
|
|
|
|
+ export class BasisTools {
|
|
|
|
+ private static _IgnoreSupportedFormats;
|
|
|
|
+ private static _LoadScriptPromise;
|
|
|
|
+ private static _FallbackURL;
|
|
|
|
+ private static _BASIS_FORMAT;
|
|
|
|
+ /**
|
|
|
|
+ * Basis module can be aquired from https://github.com/BinomialLLC/basis_universal/tree/master/webgl
|
|
|
|
+ * This should be set prior to loading a .basis texture
|
|
|
|
+ */
|
|
|
|
+ static BasisModule: Nullable<any>;
|
|
|
|
+ /**
|
|
|
|
+ * Verifies that the BasisModule has been populated and falls back to loading from the web if not availible
|
|
|
|
+ * @returns promise which will resolve if the basis module was loaded
|
|
|
|
+ */
|
|
|
|
+ static VerifyBasisModuleAsync(): any;
|
|
|
|
+ /**
|
|
|
|
+ * Verifies that the basis module has been populated and creates a bsis file from the image data
|
|
|
|
+ * @param data array buffer of the .basis file
|
|
|
|
+ * @returns the Basis file
|
|
|
|
+ */
|
|
|
|
+ static LoadBasisFile(data: ArrayBuffer): any;
|
|
|
|
+ /**
|
|
|
|
+ * Detects the supported transcode format for the file
|
|
|
|
+ * @param engine Babylon engine
|
|
|
|
+ * @param fileInfo info about the file
|
|
|
|
+ * @returns the chosed format or null if none are supported
|
|
|
|
+ */
|
|
|
|
+ static GetSupportedTranscodeFormat(engine: Engine, fileInfo: BasisFileInfo): Nullable<number>;
|
|
|
|
+ /**
|
|
|
|
+ * Get the internal format to be passed to texImage2D corresponding to the .basis format value
|
|
|
|
+ * @param basisFormat format chosen from GetSupportedTranscodeFormat
|
|
|
|
+ * @returns internal format corresponding to the Basis format
|
|
|
|
+ */
|
|
|
|
+ static GetInternalFormatFromBasisFormat(basisFormat: number): number;
|
|
|
|
+ /**
|
|
|
|
+ * Retreives information about the basis file eg. dimensions
|
|
|
|
+ * @param basisFile the basis file to get the info from
|
|
|
|
+ * @returns information about the basis file
|
|
|
|
+ */
|
|
|
|
+ static GetFileInfo(basisFile: any): BasisFileInfo;
|
|
|
|
+ /**
|
|
|
|
+ * Transcodes the basis file to the requested format to be transferred to the gpu
|
|
|
|
+ * @param format fromat to be transferred to
|
|
|
|
+ * @param fileInfo information about the loaded file
|
|
|
|
+ * @param loadedFile the loaded basis file
|
|
|
|
+ * @returns the resulting pixels and if the transcode fell back to using Rgb565
|
|
|
|
+ */
|
|
|
|
+ static TranscodeFile(format: Nullable<number>, fileInfo: BasisFileInfo, loadedFile: any): {
|
|
|
|
+ fallbackToRgb565: boolean;
|
|
|
|
+ pixels: Uint8Array;
|
|
|
|
+ };
|
|
|
|
+ /**
|
|
|
|
+ * From https://github.com/BinomialLLC/basis_universal/blob/master/webgl/texture/dxt-to-rgb565.js
|
|
|
|
+ * An unoptimized version of dxtToRgb565. Also, the floating
|
|
|
|
+ * point math used to compute the colors actually results in
|
|
|
|
+ * slightly different colors compared to hardware DXT decoders.
|
|
|
|
+ * @param src dxt src pixels
|
|
|
|
+ * @param srcByteOffset offset for the start of src
|
|
|
|
+ * @param width aligned width of the image
|
|
|
|
+ * @param height aligned height of the image
|
|
|
|
+ * @return the converted pixels
|
|
|
|
+ */
|
|
|
|
+ static ConvertDxtToRgb565(src: Uint16Array, srcByteOffset: number, width: number, height: number): Uint16Array;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module "babylonjs/Materials/Textures/Loaders/basisTextureLoader" {
|
|
|
|
+ import { Nullable } from "babylonjs/types";
|
|
|
|
+ import { InternalTexture } from "babylonjs/Materials/Textures/internalTexture";
|
|
|
|
+ import { IInternalTextureLoader } from "babylonjs/Materials/Textures/internalTextureLoader";
|
|
|
|
+ /**
|
|
|
|
+ * Loader for .basis file format
|
|
|
|
+ */
|
|
|
|
+ export class _BasisTextureLoader implements IInternalTextureLoader {
|
|
|
|
+ /**
|
|
|
|
+ * Defines whether the loader supports cascade loading the different faces.
|
|
|
|
+ */
|
|
|
|
+ readonly supportCascades: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * This returns if the loader support the current file information.
|
|
|
|
+ * @param extension defines the file extension of the file being loaded
|
|
|
|
+ * @param textureFormatInUse defines the current compressed format in use iun the engine
|
|
|
|
+ * @param fallback defines the fallback internal texture if any
|
|
|
|
+ * @param isBase64 defines whether the texture is encoded as a base64
|
|
|
|
+ * @param isBuffer defines whether the texture data are stored as a buffer
|
|
|
|
+ * @returns true if the loader can load the specified file
|
|
|
|
+ */
|
|
|
|
+ canLoad(extension: string, textureFormatInUse: Nullable<string>, fallback: Nullable<InternalTexture>, isBase64: boolean, isBuffer: boolean): boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Transform the url before loading if required.
|
|
|
|
+ * @param rootUrl the url of the texture
|
|
|
|
+ * @param textureFormatInUse defines the current compressed format in use iun the engine
|
|
|
|
+ * @returns the transformed texture
|
|
|
|
+ */
|
|
|
|
+ transformUrl(rootUrl: string, textureFormatInUse: Nullable<string>): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the fallback url in case the load fail. This can return null to allow the default fallback mecanism to work
|
|
|
|
+ * @param rootUrl the url of the texture
|
|
|
|
+ * @param textureFormatInUse defines the current compressed format in use iun the engine
|
|
|
|
+ * @returns the fallback texture
|
|
|
|
+ */
|
|
|
|
+ getFallbackTextureUrl(rootUrl: string, textureFormatInUse: Nullable<string>): Nullable<string>;
|
|
|
|
+ /**
|
|
|
|
+ * Uploads the cube texture data to the WebGl Texture. It has already been bound.
|
|
|
|
+ * @param data contains the texture data
|
|
|
|
+ * @param texture defines the BabylonJS internal texture
|
|
|
|
+ * @param createPolynomials will be true if polynomials have been requested
|
|
|
|
+ * @param onLoad defines the callback to trigger once the texture is ready
|
|
|
|
+ * @param onError defines the callback to trigger in case of error
|
|
|
|
+ */
|
|
|
|
+ loadCubeData(data: string | ArrayBuffer | (string | ArrayBuffer)[], texture: InternalTexture, createPolynomials: boolean, onLoad: Nullable<(data?: any) => void>, onError: Nullable<(message?: string, exception?: any) => void>): void;
|
|
|
|
+ /**
|
|
|
|
+ * Uploads the 2D texture data to the WebGl Texture. It has alreday been bound once in the callback.
|
|
|
|
+ * @param data contains the texture data
|
|
|
|
+ * @param texture defines the BabylonJS internal texture
|
|
|
|
+ * @param callback defines the method to call once ready to upload
|
|
|
|
+ */
|
|
|
|
+ loadData(data: ArrayBuffer, texture: InternalTexture, callback: (width: number, height: number, loadMipmap: boolean, isCompressed: boolean, done: () => void) => void): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
declare module "babylonjs/Materials/Textures/Loaders/index" {
|
|
declare module "babylonjs/Materials/Textures/Loaders/index" {
|
|
export * from "babylonjs/Materials/Textures/Loaders/ddsTextureLoader";
|
|
export * from "babylonjs/Materials/Textures/Loaders/ddsTextureLoader";
|
|
export * from "babylonjs/Materials/Textures/Loaders/envTextureLoader";
|
|
export * from "babylonjs/Materials/Textures/Loaders/envTextureLoader";
|
|
export * from "babylonjs/Materials/Textures/Loaders/ktxTextureLoader";
|
|
export * from "babylonjs/Materials/Textures/Loaders/ktxTextureLoader";
|
|
export * from "babylonjs/Materials/Textures/Loaders/tgaTextureLoader";
|
|
export * from "babylonjs/Materials/Textures/Loaders/tgaTextureLoader";
|
|
|
|
+ export * from "babylonjs/Materials/Textures/Loaders/basisTextureLoader";
|
|
}
|
|
}
|
|
declare module "babylonjs/Materials/Textures/Procedurals/customProceduralTexture" {
|
|
declare module "babylonjs/Materials/Textures/Procedurals/customProceduralTexture" {
|
|
import { Scene } from "babylonjs/scene";
|
|
import { Scene } from "babylonjs/scene";
|
|
@@ -57490,12 +57651,12 @@ declare module "babylonjs/PostProcesses/convolutionPostProcess" {
|
|
* See http://en.wikipedia.org/wiki/Kernel_(image_processing)
|
|
* See http://en.wikipedia.org/wiki/Kernel_(image_processing)
|
|
*/
|
|
*/
|
|
export class ConvolutionPostProcess extends PostProcess {
|
|
export class ConvolutionPostProcess extends PostProcess {
|
|
- /** Array of 9 values corrisponding to the 3x3 kernel to be applied */
|
|
|
|
|
|
+ /** Array of 9 values corresponding to the 3x3 kernel to be applied */
|
|
kernel: number[];
|
|
kernel: number[];
|
|
/**
|
|
/**
|
|
* Creates a new instance ConvolutionPostProcess
|
|
* Creates a new instance ConvolutionPostProcess
|
|
* @param name The name of the effect.
|
|
* @param name The name of the effect.
|
|
- * @param kernel Array of 9 values corrisponding to the 3x3 kernel to be applied
|
|
|
|
|
|
+ * @param kernel Array of 9 values corresponding to the 3x3 kernel to be applied
|
|
* @param options The required width/height ratio to downsize to before computing the render pass.
|
|
* @param options The required width/height ratio to downsize to before computing the render pass.
|
|
* @param camera The camera to apply the render pass to.
|
|
* @param camera The camera to apply the render pass to.
|
|
* @param samplingMode The sampling mode to be used when computing the pass. (default: 0)
|
|
* @param samplingMode The sampling mode to be used when computing the pass. (default: 0)
|
|
@@ -57504,7 +57665,7 @@ declare module "babylonjs/PostProcesses/convolutionPostProcess" {
|
|
* @param textureType Type of textures used when performing the post process. (default: 0)
|
|
* @param textureType Type of textures used when performing the post process. (default: 0)
|
|
*/
|
|
*/
|
|
constructor(name: string,
|
|
constructor(name: string,
|
|
- /** Array of 9 values corrisponding to the 3x3 kernel to be applied */
|
|
|
|
|
|
+ /** Array of 9 values corresponding to the 3x3 kernel to be applied */
|
|
kernel: number[], options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType?: number);
|
|
kernel: number[], options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType?: number);
|
|
/**
|
|
/**
|
|
* Edge detection 0 see https://en.wikipedia.org/wiki/Kernel_(image_processing)
|
|
* Edge detection 0 see https://en.wikipedia.org/wiki/Kernel_(image_processing)
|
|
@@ -76288,7 +76449,7 @@ declare module BABYLON {
|
|
instancesData: Float32Array;
|
|
instancesData: Float32Array;
|
|
overridenInstanceCount: number;
|
|
overridenInstanceCount: number;
|
|
isFrozen: boolean;
|
|
isFrozen: boolean;
|
|
- previousBatch: _InstancesBatch;
|
|
|
|
|
|
+ previousBatch: Nullable<_InstancesBatch>;
|
|
hardwareInstancedRendering: boolean;
|
|
hardwareInstancedRendering: boolean;
|
|
sideOrientation: number;
|
|
sideOrientation: number;
|
|
}
|
|
}
|
|
@@ -79699,7 +79860,7 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
onButtonStateChange(callback: (controlledIndex: number, buttonIndex: number, state: ExtendedGamepadButton) => void): void;
|
|
onButtonStateChange(callback: (controlledIndex: number, buttonIndex: number, state: ExtendedGamepadButton) => void): void;
|
|
/**
|
|
/**
|
|
- * X and Y axis corrisponding to the controllers joystick
|
|
|
|
|
|
+ * X and Y axis corresponding to the controllers joystick
|
|
*/
|
|
*/
|
|
pad: StickValues;
|
|
pad: StickValues;
|
|
/**
|
|
/**
|
|
@@ -80186,18 +80347,18 @@ declare module BABYLON {
|
|
getControllerByName(name: string): Nullable<WebVRController>;
|
|
getControllerByName(name: string): Nullable<WebVRController>;
|
|
private _leftController;
|
|
private _leftController;
|
|
/**
|
|
/**
|
|
- * The controller corrisponding to the users left hand.
|
|
|
|
|
|
+ * The controller corresponding to the users left hand.
|
|
*/
|
|
*/
|
|
readonly leftController: Nullable<WebVRController>;
|
|
readonly leftController: Nullable<WebVRController>;
|
|
private _rightController;
|
|
private _rightController;
|
|
/**
|
|
/**
|
|
- * The controller corrisponding to the users right hand.
|
|
|
|
|
|
+ * The controller corresponding to the users right hand.
|
|
*/
|
|
*/
|
|
readonly rightController: Nullable<WebVRController>;
|
|
readonly rightController: Nullable<WebVRController>;
|
|
/**
|
|
/**
|
|
* Casts a ray forward from the vrCamera's gaze.
|
|
* Casts a ray forward from the vrCamera's gaze.
|
|
* @param length Length of the ray (default: 100)
|
|
* @param length Length of the ray (default: 100)
|
|
- * @returns the ray corrisponding to the gaze
|
|
|
|
|
|
+ * @returns the ray corresponding to the gaze
|
|
*/
|
|
*/
|
|
getForwardRay(length?: number): Ray;
|
|
getForwardRay(length?: number): Ray;
|
|
/**
|
|
/**
|
|
@@ -80505,7 +80666,7 @@ declare module BABYLON {
|
|
getEngine(): Engine;
|
|
getEngine(): Engine;
|
|
/**
|
|
/**
|
|
* The effect that is created when initializing the post process.
|
|
* The effect that is created when initializing the post process.
|
|
- * @returns The created effect corrisponding the the postprocess.
|
|
|
|
|
|
+ * @returns The created effect corresponding the the postprocess.
|
|
*/
|
|
*/
|
|
getEffect(): Effect;
|
|
getEffect(): Effect;
|
|
/**
|
|
/**
|
|
@@ -80560,7 +80721,7 @@ declare module BABYLON {
|
|
isReady(): boolean;
|
|
isReady(): boolean;
|
|
/**
|
|
/**
|
|
* Binds all textures and uniforms to the shader, this will be run on every pass.
|
|
* Binds all textures and uniforms to the shader, this will be run on every pass.
|
|
- * @returns the effect corrisponding to this post process. Null if not compiled or not ready.
|
|
|
|
|
|
+ * @returns the effect corresponding to this post process. Null if not compiled or not ready.
|
|
*/
|
|
*/
|
|
apply(): Nullable<Effect>;
|
|
apply(): Nullable<Effect>;
|
|
private _disposeTextures;
|
|
private _disposeTextures;
|
|
@@ -81241,7 +81402,7 @@ declare module BABYLON {
|
|
constructor(name: string, size: any, fragment: any, scene: Nullable<Scene>, fallbackTexture?: Nullable<Texture>, generateMipMaps?: boolean, isCube?: boolean);
|
|
constructor(name: string, size: any, fragment: any, scene: Nullable<Scene>, fallbackTexture?: Nullable<Texture>, generateMipMaps?: boolean, isCube?: boolean);
|
|
/**
|
|
/**
|
|
* The effect that is created when initializing the post process.
|
|
* The effect that is created when initializing the post process.
|
|
- * @returns The created effect corrisponding the the postprocess.
|
|
|
|
|
|
+ * @returns The created effect corresponding the the postprocess.
|
|
*/
|
|
*/
|
|
getEffect(): Effect;
|
|
getEffect(): Effect;
|
|
/**
|
|
/**
|
|
@@ -91346,7 +91507,16 @@ declare module BABYLON {
|
|
* @returns a InternalTexture for assignment back into BABYLON.Texture
|
|
* @returns a InternalTexture for assignment back into BABYLON.Texture
|
|
*/
|
|
*/
|
|
createTexture(urlArg: Nullable<string>, noMipmap: boolean, invertY: boolean, scene: Nullable<Scene>, samplingMode?: number, onLoad?: Nullable<() => void>, onError?: Nullable<(message: string, exception: any) => void>, buffer?: Nullable<string | ArrayBuffer | HTMLImageElement | Blob>, fallback?: Nullable<InternalTexture>, format?: Nullable<number>, forcedExtension?: Nullable<string>, excludeLoaders?: Array<IInternalTextureLoader>): InternalTexture;
|
|
createTexture(urlArg: Nullable<string>, noMipmap: boolean, invertY: boolean, scene: Nullable<Scene>, samplingMode?: number, onLoad?: Nullable<() => void>, onError?: Nullable<(message: string, exception: any) => void>, buffer?: Nullable<string | ArrayBuffer | HTMLImageElement | Blob>, fallback?: Nullable<InternalTexture>, format?: Nullable<number>, forcedExtension?: Nullable<string>, excludeLoaders?: Array<IInternalTextureLoader>): InternalTexture;
|
|
- private _rescaleTexture;
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @hidden
|
|
|
|
+ * Rescales a texture
|
|
|
|
+ * @param source input texutre
|
|
|
|
+ * @param destination destination texture
|
|
|
|
+ * @param scene scene to use to render the resize
|
|
|
|
+ * @param internalFormat format to use when resizing
|
|
|
|
+ * @param onComplete callback to be called when resize has completed
|
|
|
|
+ */
|
|
|
|
+ _rescaleTexture(source: InternalTexture, destination: InternalTexture, scene: Nullable<Scene>, internalFormat: number, onComplete: () => void): void;
|
|
private _unpackFlipYCached;
|
|
private _unpackFlipYCached;
|
|
/**
|
|
/**
|
|
* In case you are sharing the context with other applications, it might
|
|
* In case you are sharing the context with other applications, it might
|
|
@@ -91450,7 +91620,7 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_uploadCompressedDataToTextureDirectly(texture: InternalTexture, internalFormat: number, width: number, height: number, data: ArrayBufferView, faceIndex?: number, lod?: number): void;
|
|
_uploadCompressedDataToTextureDirectly(texture: InternalTexture, internalFormat: number, width: number, height: number, data: ArrayBufferView, faceIndex?: number, lod?: number): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _uploadDataToTextureDirectly(texture: InternalTexture, imageData: ArrayBufferView, faceIndex?: number, lod?: number): void;
|
|
|
|
|
|
+ _uploadDataToTextureDirectly(texture: InternalTexture, imageData: ArrayBufferView, faceIndex?: number, lod?: number, babylonInternalFormat?: number, useTextureWidthAndHeight?: boolean): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_uploadArrayBufferViewToTexture(texture: InternalTexture, imageData: ArrayBufferView, faceIndex?: number, lod?: number): void;
|
|
_uploadArrayBufferViewToTexture(texture: InternalTexture, imageData: ArrayBufferView, faceIndex?: number, lod?: number): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -93767,7 +93937,7 @@ declare module BABYLON {
|
|
* @param scriptId defines the id of the script element
|
|
* @param scriptId defines the id of the script element
|
|
* @returns a promise request object
|
|
* @returns a promise request object
|
|
*/
|
|
*/
|
|
- static LoadScriptAsync(scriptUrl: string, scriptId?: string): Nullable<Promise<boolean>>;
|
|
|
|
|
|
+ static LoadScriptAsync(scriptUrl: string, scriptId?: string): Promise<boolean>;
|
|
/**
|
|
/**
|
|
* Loads a file from a blob
|
|
* Loads a file from a blob
|
|
* @param fileToLoad defines the blob to use
|
|
* @param fileToLoad defines the blob to use
|
|
@@ -101635,7 +101805,7 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
roughness: number;
|
|
roughness: number;
|
|
/**
|
|
/**
|
|
- * In case of refraction, define the value of the indice of refraction.
|
|
|
|
|
|
+ * In case of refraction, define the value of the index of refraction.
|
|
* @see http://doc.babylonjs.com/how_to/reflect#how-to-obtain-reflections-and-refractions
|
|
* @see http://doc.babylonjs.com/how_to/reflect#how-to-obtain-reflections-and-refractions
|
|
*/
|
|
*/
|
|
indexOfRefraction: number;
|
|
indexOfRefraction: number;
|
|
@@ -106918,7 +107088,7 @@ declare module BABYLON {
|
|
* This defaults to 1.5 corresponding to a 0.04 f0 or a 4% reflectance at normal incidence
|
|
* This defaults to 1.5 corresponding to a 0.04 f0 or a 4% reflectance at normal incidence
|
|
* The default fits with a polyurethane material.
|
|
* The default fits with a polyurethane material.
|
|
*/
|
|
*/
|
|
- private static readonly _DefaultIndiceOfRefraction;
|
|
|
|
|
|
+ private static readonly _DefaultIndexOfRefraction;
|
|
private _isEnabled;
|
|
private _isEnabled;
|
|
/**
|
|
/**
|
|
* Defines if the clear coat is enabled in the material.
|
|
* Defines if the clear coat is enabled in the material.
|
|
@@ -106932,14 +107102,14 @@ declare module BABYLON {
|
|
* Defines the clear coat layer roughness.
|
|
* Defines the clear coat layer roughness.
|
|
*/
|
|
*/
|
|
roughness: number;
|
|
roughness: number;
|
|
- private _indiceOfRefraction;
|
|
|
|
|
|
+ private _indexOfRefraction;
|
|
/**
|
|
/**
|
|
- * Defines the indice of refraction of the clear coat.
|
|
|
|
|
|
+ * Defines the index of refraction of the clear coat.
|
|
* This defaults to 1.5 corresponding to a 0.04 f0 or a 4% reflectance at normal incidence
|
|
* This defaults to 1.5 corresponding to a 0.04 f0 or a 4% reflectance at normal incidence
|
|
* The default fits with a polyurethane material.
|
|
* The default fits with a polyurethane material.
|
|
* Changing the default value is more performance intensive.
|
|
* Changing the default value is more performance intensive.
|
|
*/
|
|
*/
|
|
- indiceOfRefraction: number;
|
|
|
|
|
|
+ indexOfRefraction: number;
|
|
private _texture;
|
|
private _texture;
|
|
/**
|
|
/**
|
|
* Stores the clear coat values in a texture.
|
|
* Stores the clear coat values in a texture.
|
|
@@ -107510,7 +107680,7 @@ declare module BABYLON {
|
|
refractionTexture: Nullable<BaseTexture>;
|
|
refractionTexture: Nullable<BaseTexture>;
|
|
private _indexOfRefraction;
|
|
private _indexOfRefraction;
|
|
/**
|
|
/**
|
|
- * Defines the indice of refraction used in the material.
|
|
|
|
|
|
+ * Defines the index of refraction used in the material.
|
|
* https://en.wikipedia.org/wiki/List_of_refractive_indices
|
|
* https://en.wikipedia.org/wiki/List_of_refractive_indices
|
|
*/
|
|
*/
|
|
indexOfRefraction: number;
|
|
indexOfRefraction: number;
|
|
@@ -112498,6 +112668,152 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
|
|
+ * Info about the .basis files
|
|
|
|
+ */
|
|
|
|
+ class BasisFileInfo {
|
|
|
|
+ /**
|
|
|
|
+ * If the file has alpha
|
|
|
|
+ */
|
|
|
|
+ hasAlpha: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Width of the image
|
|
|
|
+ */
|
|
|
|
+ width: number;
|
|
|
|
+ /**
|
|
|
|
+ * Height of the image
|
|
|
|
+ */
|
|
|
|
+ height: number;
|
|
|
|
+ /**
|
|
|
|
+ * Aligned width used when falling back to Rgb565 ((width + 3) & ~3)
|
|
|
|
+ */
|
|
|
|
+ alignedWidth: number;
|
|
|
|
+ /**
|
|
|
|
+ * Aligned height used when falling back to Rgb565 ((height + 3) & ~3)
|
|
|
|
+ */
|
|
|
|
+ alignedHeight: number;
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
|
|
+ * Used to load .Basis files
|
|
|
|
+ * See https://github.com/BinomialLLC/basis_universal/tree/master/webgl
|
|
|
|
+ */
|
|
|
|
+ export class BasisTools {
|
|
|
|
+ private static _IgnoreSupportedFormats;
|
|
|
|
+ private static _LoadScriptPromise;
|
|
|
|
+ private static _FallbackURL;
|
|
|
|
+ private static _BASIS_FORMAT;
|
|
|
|
+ /**
|
|
|
|
+ * Basis module can be aquired from https://github.com/BinomialLLC/basis_universal/tree/master/webgl
|
|
|
|
+ * This should be set prior to loading a .basis texture
|
|
|
|
+ */
|
|
|
|
+ static BasisModule: Nullable<any>;
|
|
|
|
+ /**
|
|
|
|
+ * Verifies that the BasisModule has been populated and falls back to loading from the web if not availible
|
|
|
|
+ * @returns promise which will resolve if the basis module was loaded
|
|
|
|
+ */
|
|
|
|
+ static VerifyBasisModuleAsync(): any;
|
|
|
|
+ /**
|
|
|
|
+ * Verifies that the basis module has been populated and creates a bsis file from the image data
|
|
|
|
+ * @param data array buffer of the .basis file
|
|
|
|
+ * @returns the Basis file
|
|
|
|
+ */
|
|
|
|
+ static LoadBasisFile(data: ArrayBuffer): any;
|
|
|
|
+ /**
|
|
|
|
+ * Detects the supported transcode format for the file
|
|
|
|
+ * @param engine Babylon engine
|
|
|
|
+ * @param fileInfo info about the file
|
|
|
|
+ * @returns the chosed format or null if none are supported
|
|
|
|
+ */
|
|
|
|
+ static GetSupportedTranscodeFormat(engine: Engine, fileInfo: BasisFileInfo): Nullable<number>;
|
|
|
|
+ /**
|
|
|
|
+ * Get the internal format to be passed to texImage2D corresponding to the .basis format value
|
|
|
|
+ * @param basisFormat format chosen from GetSupportedTranscodeFormat
|
|
|
|
+ * @returns internal format corresponding to the Basis format
|
|
|
|
+ */
|
|
|
|
+ static GetInternalFormatFromBasisFormat(basisFormat: number): number;
|
|
|
|
+ /**
|
|
|
|
+ * Retreives information about the basis file eg. dimensions
|
|
|
|
+ * @param basisFile the basis file to get the info from
|
|
|
|
+ * @returns information about the basis file
|
|
|
|
+ */
|
|
|
|
+ static GetFileInfo(basisFile: any): BasisFileInfo;
|
|
|
|
+ /**
|
|
|
|
+ * Transcodes the basis file to the requested format to be transferred to the gpu
|
|
|
|
+ * @param format fromat to be transferred to
|
|
|
|
+ * @param fileInfo information about the loaded file
|
|
|
|
+ * @param loadedFile the loaded basis file
|
|
|
|
+ * @returns the resulting pixels and if the transcode fell back to using Rgb565
|
|
|
|
+ */
|
|
|
|
+ static TranscodeFile(format: Nullable<number>, fileInfo: BasisFileInfo, loadedFile: any): {
|
|
|
|
+ fallbackToRgb565: boolean;
|
|
|
|
+ pixels: Uint8Array;
|
|
|
|
+ };
|
|
|
|
+ /**
|
|
|
|
+ * From https://github.com/BinomialLLC/basis_universal/blob/master/webgl/texture/dxt-to-rgb565.js
|
|
|
|
+ * An unoptimized version of dxtToRgb565. Also, the floating
|
|
|
|
+ * point math used to compute the colors actually results in
|
|
|
|
+ * slightly different colors compared to hardware DXT decoders.
|
|
|
|
+ * @param src dxt src pixels
|
|
|
|
+ * @param srcByteOffset offset for the start of src
|
|
|
|
+ * @param width aligned width of the image
|
|
|
|
+ * @param height aligned height of the image
|
|
|
|
+ * @return the converted pixels
|
|
|
|
+ */
|
|
|
|
+ static ConvertDxtToRgb565(src: Uint16Array, srcByteOffset: number, width: number, height: number): Uint16Array;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
|
|
+ * Loader for .basis file format
|
|
|
|
+ */
|
|
|
|
+ export class _BasisTextureLoader implements IInternalTextureLoader {
|
|
|
|
+ /**
|
|
|
|
+ * Defines whether the loader supports cascade loading the different faces.
|
|
|
|
+ */
|
|
|
|
+ readonly supportCascades: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * This returns if the loader support the current file information.
|
|
|
|
+ * @param extension defines the file extension of the file being loaded
|
|
|
|
+ * @param textureFormatInUse defines the current compressed format in use iun the engine
|
|
|
|
+ * @param fallback defines the fallback internal texture if any
|
|
|
|
+ * @param isBase64 defines whether the texture is encoded as a base64
|
|
|
|
+ * @param isBuffer defines whether the texture data are stored as a buffer
|
|
|
|
+ * @returns true if the loader can load the specified file
|
|
|
|
+ */
|
|
|
|
+ canLoad(extension: string, textureFormatInUse: Nullable<string>, fallback: Nullable<InternalTexture>, isBase64: boolean, isBuffer: boolean): boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Transform the url before loading if required.
|
|
|
|
+ * @param rootUrl the url of the texture
|
|
|
|
+ * @param textureFormatInUse defines the current compressed format in use iun the engine
|
|
|
|
+ * @returns the transformed texture
|
|
|
|
+ */
|
|
|
|
+ transformUrl(rootUrl: string, textureFormatInUse: Nullable<string>): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the fallback url in case the load fail. This can return null to allow the default fallback mecanism to work
|
|
|
|
+ * @param rootUrl the url of the texture
|
|
|
|
+ * @param textureFormatInUse defines the current compressed format in use iun the engine
|
|
|
|
+ * @returns the fallback texture
|
|
|
|
+ */
|
|
|
|
+ getFallbackTextureUrl(rootUrl: string, textureFormatInUse: Nullable<string>): Nullable<string>;
|
|
|
|
+ /**
|
|
|
|
+ * Uploads the cube texture data to the WebGl Texture. It has already been bound.
|
|
|
|
+ * @param data contains the texture data
|
|
|
|
+ * @param texture defines the BabylonJS internal texture
|
|
|
|
+ * @param createPolynomials will be true if polynomials have been requested
|
|
|
|
+ * @param onLoad defines the callback to trigger once the texture is ready
|
|
|
|
+ * @param onError defines the callback to trigger in case of error
|
|
|
|
+ */
|
|
|
|
+ loadCubeData(data: string | ArrayBuffer | (string | ArrayBuffer)[], texture: InternalTexture, createPolynomials: boolean, onLoad: Nullable<(data?: any) => void>, onError: Nullable<(message?: string, exception?: any) => void>): void;
|
|
|
|
+ /**
|
|
|
|
+ * Uploads the 2D texture data to the WebGl Texture. It has alreday been bound once in the callback.
|
|
|
|
+ * @param data contains the texture data
|
|
|
|
+ * @param texture defines the BabylonJS internal texture
|
|
|
|
+ * @param callback defines the method to call once ready to upload
|
|
|
|
+ */
|
|
|
|
+ loadData(data: ArrayBuffer, texture: InternalTexture, callback: (width: number, height: number, loadMipmap: boolean, isCompressed: boolean, done: () => void) => void): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
* Procedural texturing is a way to programmatically create a texture. There are 2 types of procedural textures: code-only, and code that references some classic 2D images, sometimes called 'refMaps' or 'sampler' images.
|
|
* Procedural texturing is a way to programmatically create a texture. There are 2 types of procedural textures: code-only, and code that references some classic 2D images, sometimes called 'refMaps' or 'sampler' images.
|
|
* Custom Procedural textures are the easiest way to create your own procedural in your application.
|
|
* Custom Procedural textures are the easiest way to create your own procedural in your application.
|
|
* @see http://doc.babylonjs.com/how_to/how_to_use_procedural_textures#creating-custom-procedural-textures
|
|
* @see http://doc.babylonjs.com/how_to/how_to_use_procedural_textures#creating-custom-procedural-textures
|
|
@@ -117275,12 +117591,12 @@ declare module BABYLON {
|
|
* See http://en.wikipedia.org/wiki/Kernel_(image_processing)
|
|
* See http://en.wikipedia.org/wiki/Kernel_(image_processing)
|
|
*/
|
|
*/
|
|
export class ConvolutionPostProcess extends PostProcess {
|
|
export class ConvolutionPostProcess extends PostProcess {
|
|
- /** Array of 9 values corrisponding to the 3x3 kernel to be applied */
|
|
|
|
|
|
+ /** Array of 9 values corresponding to the 3x3 kernel to be applied */
|
|
kernel: number[];
|
|
kernel: number[];
|
|
/**
|
|
/**
|
|
* Creates a new instance ConvolutionPostProcess
|
|
* Creates a new instance ConvolutionPostProcess
|
|
* @param name The name of the effect.
|
|
* @param name The name of the effect.
|
|
- * @param kernel Array of 9 values corrisponding to the 3x3 kernel to be applied
|
|
|
|
|
|
+ * @param kernel Array of 9 values corresponding to the 3x3 kernel to be applied
|
|
* @param options The required width/height ratio to downsize to before computing the render pass.
|
|
* @param options The required width/height ratio to downsize to before computing the render pass.
|
|
* @param camera The camera to apply the render pass to.
|
|
* @param camera The camera to apply the render pass to.
|
|
* @param samplingMode The sampling mode to be used when computing the pass. (default: 0)
|
|
* @param samplingMode The sampling mode to be used when computing the pass. (default: 0)
|
|
@@ -117289,7 +117605,7 @@ declare module BABYLON {
|
|
* @param textureType Type of textures used when performing the post process. (default: 0)
|
|
* @param textureType Type of textures used when performing the post process. (default: 0)
|
|
*/
|
|
*/
|
|
constructor(name: string,
|
|
constructor(name: string,
|
|
- /** Array of 9 values corrisponding to the 3x3 kernel to be applied */
|
|
|
|
|
|
+ /** Array of 9 values corresponding to the 3x3 kernel to be applied */
|
|
kernel: number[], options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType?: number);
|
|
kernel: number[], options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType?: number);
|
|
/**
|
|
/**
|
|
* Edge detection 0 see https://en.wikipedia.org/wiki/Kernel_(image_processing)
|
|
* Edge detection 0 see https://en.wikipedia.org/wiki/Kernel_(image_processing)
|