|
@@ -22669,7 +22669,7 @@ declare module "babylonjs/Meshes/meshLODLevel" {
|
|
|
* @see http://doc.babylonjs.com/how_to/how_to_use_lod
|
|
|
*/
|
|
|
export class MeshLODLevel {
|
|
|
- /** Defines the distance where this level should star being displayed */
|
|
|
+ /** Defines the distance where this level should start being displayed */
|
|
|
distance: number;
|
|
|
/** Defines the mesh to use to render this level */
|
|
|
mesh: Nullable<Mesh>;
|
|
@@ -22679,7 +22679,7 @@ declare module "babylonjs/Meshes/meshLODLevel" {
|
|
|
* @param mesh defines the mesh to use to render this level
|
|
|
*/
|
|
|
constructor(
|
|
|
- /** Defines the distance where this level should star being displayed */
|
|
|
+ /** Defines the distance where this level should start being displayed */
|
|
|
distance: number,
|
|
|
/** Defines the mesh to use to render this level */
|
|
|
mesh: Nullable<Mesh>);
|
|
@@ -25137,7 +25137,7 @@ declare module "babylonjs/Cameras/camera" {
|
|
|
import { Nullable } from "babylonjs/types";
|
|
|
import { CameraInputsManager } from "babylonjs/Cameras/cameraInputsManager";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
- import { Matrix, Vector3 } from "babylonjs/Maths/math.vector";
|
|
|
+ import { Matrix, Vector3, Quaternion } from "babylonjs/Maths/math.vector";
|
|
|
import { Node } from "babylonjs/node";
|
|
|
import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
@@ -25624,6 +25624,10 @@ declare module "babylonjs/Cameras/camera" {
|
|
|
*/
|
|
|
getDirection(localAxis: Vector3): Vector3;
|
|
|
/**
|
|
|
+ * Returns the current camera absolute rotation
|
|
|
+ */
|
|
|
+ readonly absoluteRotation: Quaternion;
|
|
|
+ /**
|
|
|
* Gets the direction of the camera relative to a given local axis into a passed vector.
|
|
|
* @param localAxis Defines the reference axis to provide a relative direction.
|
|
|
* @param result Defines the vector to store the result in
|
|
@@ -28489,9 +28493,9 @@ declare module "babylonjs/Materials/Textures/baseTexture" {
|
|
|
*/
|
|
|
gammaSpace: boolean;
|
|
|
/**
|
|
|
- * Gets whether or not the texture contains RGBD data.
|
|
|
+ * Gets or sets whether or not the texture contains RGBD data.
|
|
|
*/
|
|
|
- readonly isRGBD: boolean;
|
|
|
+ isRGBD: boolean;
|
|
|
/**
|
|
|
* Is Z inverted in the texture (useful in a cube texture).
|
|
|
*/
|
|
@@ -42441,6 +42445,10 @@ declare module "babylonjs/Cameras/VR/vrExperienceHelper" {
|
|
|
*/
|
|
|
updateGazeTrackerColor: boolean;
|
|
|
/**
|
|
|
+ * If the controller laser color should be updated when selecting meshes
|
|
|
+ */
|
|
|
+ updateControllerLaserColor: boolean;
|
|
|
+ /**
|
|
|
* The gaze tracking mesh corresponding to the left controller
|
|
|
*/
|
|
|
readonly leftControllerGazeTrackerMesh: Nullable<Mesh>;
|
|
@@ -45961,7 +45969,11 @@ declare module "babylonjs/Engines/nativeEngine" {
|
|
|
*/
|
|
|
createCubeTexture(rootUrl: string, scene: Nullable<Scene>, files: Nullable<string[]>, noMipmap?: boolean, onLoad?: Nullable<(data?: any) => void>, onError?: Nullable<(message?: string, exception?: any) => void>, format?: number, forcedExtension?: any, createPolynomials?: boolean, lodScale?: number, lodOffset?: number, fallback?: Nullable<InternalTexture>): InternalTexture;
|
|
|
private _getSamplingFilter;
|
|
|
- createRenderTargetTexture(size: any, options: boolean | RenderTargetCreationOptions): InternalTexture;
|
|
|
+ private static _GetNativeTextureFormat;
|
|
|
+ createRenderTargetTexture(size: number | {
|
|
|
+ width: number;
|
|
|
+ height: number;
|
|
|
+ }, options: boolean | RenderTargetCreationOptions): InternalTexture;
|
|
|
updateTextureSamplingMode(samplingMode: number, texture: InternalTexture): void;
|
|
|
bindFramebuffer(texture: InternalTexture, faceIndex?: number, requiredWidth?: number, requiredHeight?: number, forceFullscreenViewport?: boolean): void;
|
|
|
unBindFramebuffer(texture: InternalTexture, disableGenerateMipMaps?: boolean, onBeforeUnbind?: () => void): void;
|
|
@@ -47784,6 +47796,10 @@ declare module "babylonjs/Helpers/photoDome" {
|
|
|
*/
|
|
|
protected _mesh: Mesh;
|
|
|
/**
|
|
|
+ * Gets the mesh used for the skybox.
|
|
|
+ */
|
|
|
+ readonly mesh: Mesh;
|
|
|
+ /**
|
|
|
* The current fov(field of view) multiplier, 0.0 - 2.0. Defaults to 1.0. Lower values "zoom in" and higher values "zoom out".
|
|
|
* Also see the options.resolution property.
|
|
|
*/
|
|
@@ -47819,20 +47835,28 @@ declare module "babylonjs/Helpers/photoDome" {
|
|
|
dispose(doNotRecurse?: boolean, disposeMaterialAndTextures?: boolean): void;
|
|
|
}
|
|
|
}
|
|
|
+declare module "babylonjs/Misc/rgbdTextureTools" {
|
|
|
+ import "babylonjs/Shaders/rgbdDecode.fragment";
|
|
|
+ import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
|
+ /**
|
|
|
+ * Class used to host RGBD texture specific utilities
|
|
|
+ */
|
|
|
+ export class RGBDTextureTools {
|
|
|
+ /**
|
|
|
+ * Expand the RGBD Texture from RGBD to Half Float if possible.
|
|
|
+ * @param texture the texture to expand.
|
|
|
+ */
|
|
|
+ static ExpandRGBDTexture(texture: Texture): void;
|
|
|
+ }
|
|
|
+}
|
|
|
declare module "babylonjs/Misc/brdfTextureTools" {
|
|
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
- import "babylonjs/Shaders/rgbdDecode.fragment";
|
|
|
/**
|
|
|
* Class used to host texture specific utilities
|
|
|
*/
|
|
|
export class BRDFTextureTools {
|
|
|
/**
|
|
|
- * Expand the BRDF Texture from RGBD to Half Float if necessary.
|
|
|
- * @param texture the texture to expand.
|
|
|
- */
|
|
|
- private static _ExpandDefaultBRDFTexture;
|
|
|
- /**
|
|
|
* Gets a default environment BRDF for MS-BRDF Height Correlated BRDF
|
|
|
* @param scene defines the hosting scene
|
|
|
* @returns the environment BRDF texture
|
|
@@ -48909,6 +48933,7 @@ declare module "babylonjs/Materials/PBR/pbrBaseMaterial" {
|
|
|
LIGHTMAPDIRECTUV: number;
|
|
|
USELIGHTMAPASSHADOWMAP: boolean;
|
|
|
GAMMALIGHTMAP: boolean;
|
|
|
+ RGBDLIGHTMAP: boolean;
|
|
|
REFLECTION: boolean;
|
|
|
REFLECTIONMAP_3D: boolean;
|
|
|
REFLECTIONMAP_SPHERICAL: boolean;
|
|
@@ -54670,6 +54695,8 @@ declare module "babylonjs/Materials/Node/nodeMaterial" {
|
|
|
SAMPLER3DGREENDEPTH: boolean;
|
|
|
SAMPLER3DBGRMAP: boolean;
|
|
|
IMAGEPROCESSINGPOSTPROCESS: boolean;
|
|
|
+ /** MISC. */
|
|
|
+ BUMPDIRECTUV: number;
|
|
|
constructor();
|
|
|
setValue(name: string, value: boolean): void;
|
|
|
}
|
|
@@ -55152,6 +55179,12 @@ declare module "babylonjs/Materials/Node/nodeMaterialBuildState" {
|
|
|
[key: string]: string;
|
|
|
};
|
|
|
/**
|
|
|
+ * Gets the list of emitted extensions
|
|
|
+ */
|
|
|
+ extensions: {
|
|
|
+ [key: string]: string;
|
|
|
+ };
|
|
|
+ /**
|
|
|
* Gets the target of the compilation state
|
|
|
*/
|
|
|
target: NodeMaterialBlockTargets;
|
|
@@ -55198,6 +55231,8 @@ declare module "babylonjs/Materials/Node/nodeMaterialBuildState" {
|
|
|
/** @hidden */
|
|
|
_getGLType(type: NodeMaterialBlockConnectionPointTypes): string;
|
|
|
/** @hidden */
|
|
|
+ _emitExtension(name: string, extension: string): void;
|
|
|
+ /** @hidden */
|
|
|
_emitFunction(name: string, code: string, comments: string): void;
|
|
|
/** @hidden */
|
|
|
_emitCodeFromInclude(includeName: string, comments: string, options?: {
|
|
@@ -55588,6 +55623,7 @@ declare module "babylonjs/Materials/Node/Blocks/Input/inputBlock" {
|
|
|
*/
|
|
|
animate(scene: Scene): void;
|
|
|
private _emitDefine;
|
|
|
+ initialize(state: NodeMaterialBuildState): void;
|
|
|
/**
|
|
|
* Set the input block to its default value (based on its type)
|
|
|
*/
|
|
@@ -56018,10 +56054,72 @@ declare module "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock" {
|
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
}
|
|
|
}
|
|
|
+declare module "babylonjs/Materials/Node/Blocks/Fragment/perturbNormalBlock" {
|
|
|
+ import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
|
+ import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
|
+ import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
|
+ import { NodeMaterial, NodeMaterialDefines } from "babylonjs/Materials/Node/nodeMaterial";
|
|
|
+ import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
|
+ import { Effect } from "babylonjs/Materials/effect";
|
|
|
+ import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
+ import { Scene } from "babylonjs/scene";
|
|
|
+ /**
|
|
|
+ * Block used to pertub normals based on a normal map
|
|
|
+ */
|
|
|
+ export class PerturbNormalBlock extends NodeMaterialBlock {
|
|
|
+ private _tangentSpaceParameterName;
|
|
|
+ /** Gets or sets a boolean indicating that normal should be inverted on X axis */
|
|
|
+ invertX: boolean;
|
|
|
+ /** Gets or sets a boolean indicating that normal should be inverted on Y axis */
|
|
|
+ invertY: boolean;
|
|
|
+ /**
|
|
|
+ * Create a new PerturbNormalBlock
|
|
|
+ * @param name defines the block name
|
|
|
+ */
|
|
|
+ constructor(name: string);
|
|
|
+ /**
|
|
|
+ * Gets the current class name
|
|
|
+ * @returns the class name
|
|
|
+ */
|
|
|
+ getClassName(): string;
|
|
|
+ /**
|
|
|
+ * Gets the world position input component
|
|
|
+ */
|
|
|
+ readonly worldPosition: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the world normal input component
|
|
|
+ */
|
|
|
+ readonly worldNormal: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the uv input component
|
|
|
+ */
|
|
|
+ readonly uv: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the normal map color input component
|
|
|
+ */
|
|
|
+ readonly normalMapColor: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the strength input component
|
|
|
+ */
|
|
|
+ readonly strength: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the output component
|
|
|
+ */
|
|
|
+ readonly output: NodeMaterialConnectionPoint;
|
|
|
+ prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
|
+ bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
+ protected _dumpPropertiesCode(): string;
|
|
|
+ serialize(): any;
|
|
|
+ _deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
|
+ }
|
|
|
+}
|
|
|
declare module "babylonjs/Materials/Node/Blocks/Fragment/index" {
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/fragmentOutputBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/alphaTestBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock";
|
|
|
+ export * from "babylonjs/Materials/Node/Blocks/Fragment/perturbNormalBlock";
|
|
|
}
|
|
|
declare module "babylonjs/Materials/Node/Blocks/Dual/fogBlock" {
|
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
@@ -56378,6 +56476,22 @@ declare module "babylonjs/Materials/Node/Blocks/remapBlock" {
|
|
|
*/
|
|
|
readonly input: NodeMaterialConnectionPoint;
|
|
|
/**
|
|
|
+ * Gets the source min input component
|
|
|
+ */
|
|
|
+ readonly sourceMin: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the source max input component
|
|
|
+ */
|
|
|
+ readonly sourceMax: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the target min input component
|
|
|
+ */
|
|
|
+ readonly targetMin: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the target max input component
|
|
|
+ */
|
|
|
+ readonly targetMax: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
* Gets the output component
|
|
|
*/
|
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
@@ -56813,16 +56927,16 @@ declare module "babylonjs/Materials/Node/Blocks/stepBlock" {
|
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
}
|
|
|
}
|
|
|
-declare module "babylonjs/Materials/Node/Blocks/oppositeBlock" {
|
|
|
+declare module "babylonjs/Materials/Node/Blocks/oneMinusBlock" {
|
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
|
import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
|
import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
|
/**
|
|
|
- * Block used to get the opposite of a value
|
|
|
+ * Block used to get the opposite (1 - x) of a value
|
|
|
*/
|
|
|
- export class OppositeBlock extends NodeMaterialBlock {
|
|
|
+ export class OneMinusBlock extends NodeMaterialBlock {
|
|
|
/**
|
|
|
- * Creates a new OppositeBlock
|
|
|
+ * Creates a new OneMinusBlock
|
|
|
* @param name defines the block name
|
|
|
*/
|
|
|
constructor(name: string);
|
|
@@ -57009,7 +57123,7 @@ declare module "babylonjs/Materials/Node/Blocks/index" {
|
|
|
export * from "babylonjs/Materials/Node/Blocks/divideBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/subtractBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/stepBlock";
|
|
|
- export * from "babylonjs/Materials/Node/Blocks/oppositeBlock";
|
|
|
+ export * from "babylonjs/Materials/Node/Blocks/oneMinusBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/viewDirectionBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/fresnelBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/maxBlock";
|
|
@@ -65331,6 +65445,7 @@ declare module "babylonjs/Misc/index" {
|
|
|
export * from "babylonjs/Misc/webRequest";
|
|
|
export * from "babylonjs/Misc/iInspectable";
|
|
|
export * from "babylonjs/Misc/brdfTextureTools";
|
|
|
+ export * from "babylonjs/Misc/rgbdTextureTools";
|
|
|
export * from "babylonjs/Misc/gradients";
|
|
|
export * from "babylonjs/Misc/perfCounter";
|
|
|
export * from "babylonjs/Misc/fileRequest";
|
|
@@ -87524,7 +87639,7 @@ declare module BABYLON {
|
|
|
* @see http://doc.babylonjs.com/how_to/how_to_use_lod
|
|
|
*/
|
|
|
export class MeshLODLevel {
|
|
|
- /** Defines the distance where this level should star being displayed */
|
|
|
+ /** Defines the distance where this level should start being displayed */
|
|
|
distance: number;
|
|
|
/** Defines the mesh to use to render this level */
|
|
|
mesh: Nullable<Mesh>;
|
|
@@ -87534,7 +87649,7 @@ declare module BABYLON {
|
|
|
* @param mesh defines the mesh to use to render this level
|
|
|
*/
|
|
|
constructor(
|
|
|
- /** Defines the distance where this level should star being displayed */
|
|
|
+ /** Defines the distance where this level should start being displayed */
|
|
|
distance: number,
|
|
|
/** Defines the mesh to use to render this level */
|
|
|
mesh: Nullable<Mesh>);
|
|
@@ -90414,6 +90529,10 @@ declare module BABYLON {
|
|
|
*/
|
|
|
getDirection(localAxis: Vector3): Vector3;
|
|
|
/**
|
|
|
+ * Returns the current camera absolute rotation
|
|
|
+ */
|
|
|
+ readonly absoluteRotation: Quaternion;
|
|
|
+ /**
|
|
|
* Gets the direction of the camera relative to a given local axis into a passed vector.
|
|
|
* @param localAxis Defines the reference axis to provide a relative direction.
|
|
|
* @param result Defines the vector to store the result in
|
|
@@ -93180,9 +93299,9 @@ declare module BABYLON {
|
|
|
*/
|
|
|
gammaSpace: boolean;
|
|
|
/**
|
|
|
- * Gets whether or not the texture contains RGBD data.
|
|
|
+ * Gets or sets whether or not the texture contains RGBD data.
|
|
|
*/
|
|
|
- readonly isRGBD: boolean;
|
|
|
+ isRGBD: boolean;
|
|
|
/**
|
|
|
* Is Z inverted in the texture (useful in a cube texture).
|
|
|
*/
|
|
@@ -106515,6 +106634,10 @@ declare module BABYLON {
|
|
|
*/
|
|
|
updateGazeTrackerColor: boolean;
|
|
|
/**
|
|
|
+ * If the controller laser color should be updated when selecting meshes
|
|
|
+ */
|
|
|
+ updateControllerLaserColor: boolean;
|
|
|
+ /**
|
|
|
* The gaze tracking mesh corresponding to the left controller
|
|
|
*/
|
|
|
readonly leftControllerGazeTrackerMesh: Nullable<Mesh>;
|
|
@@ -109706,7 +109829,11 @@ declare module BABYLON {
|
|
|
*/
|
|
|
createCubeTexture(rootUrl: string, scene: Nullable<Scene>, files: Nullable<string[]>, noMipmap?: boolean, onLoad?: Nullable<(data?: any) => void>, onError?: Nullable<(message?: string, exception?: any) => void>, format?: number, forcedExtension?: any, createPolynomials?: boolean, lodScale?: number, lodOffset?: number, fallback?: Nullable<InternalTexture>): InternalTexture;
|
|
|
private _getSamplingFilter;
|
|
|
- createRenderTargetTexture(size: any, options: boolean | RenderTargetCreationOptions): InternalTexture;
|
|
|
+ private static _GetNativeTextureFormat;
|
|
|
+ createRenderTargetTexture(size: number | {
|
|
|
+ width: number;
|
|
|
+ height: number;
|
|
|
+ }, options: boolean | RenderTargetCreationOptions): InternalTexture;
|
|
|
updateTextureSamplingMode(samplingMode: number, texture: InternalTexture): void;
|
|
|
bindFramebuffer(texture: InternalTexture, faceIndex?: number, requiredWidth?: number, requiredHeight?: number, forceFullscreenViewport?: boolean): void;
|
|
|
unBindFramebuffer(texture: InternalTexture, disableGenerateMipMaps?: boolean, onBeforeUnbind?: () => void): void;
|
|
@@ -111332,6 +111459,10 @@ declare module BABYLON {
|
|
|
*/
|
|
|
protected _mesh: Mesh;
|
|
|
/**
|
|
|
+ * Gets the mesh used for the skybox.
|
|
|
+ */
|
|
|
+ readonly mesh: Mesh;
|
|
|
+ /**
|
|
|
* The current fov(field of view) multiplier, 0.0 - 2.0. Defaults to 1.0. Lower values "zoom in" and higher values "zoom out".
|
|
|
* Also see the options.resolution property.
|
|
|
*/
|
|
@@ -111369,14 +111500,21 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
- * Class used to host texture specific utilities
|
|
|
+ * Class used to host RGBD texture specific utilities
|
|
|
*/
|
|
|
- export class BRDFTextureTools {
|
|
|
+ export class RGBDTextureTools {
|
|
|
/**
|
|
|
- * Expand the BRDF Texture from RGBD to Half Float if necessary.
|
|
|
+ * Expand the RGBD Texture from RGBD to Half Float if possible.
|
|
|
* @param texture the texture to expand.
|
|
|
*/
|
|
|
- private static _ExpandDefaultBRDFTexture;
|
|
|
+ static ExpandRGBDTexture(texture: Texture): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
+ /**
|
|
|
+ * Class used to host texture specific utilities
|
|
|
+ */
|
|
|
+ export class BRDFTextureTools {
|
|
|
/**
|
|
|
* Gets a default environment BRDF for MS-BRDF Height Correlated BRDF
|
|
|
* @param scene defines the hosting scene
|
|
@@ -112349,6 +112487,7 @@ declare module BABYLON {
|
|
|
LIGHTMAPDIRECTUV: number;
|
|
|
USELIGHTMAPASSHADOWMAP: boolean;
|
|
|
GAMMALIGHTMAP: boolean;
|
|
|
+ RGBDLIGHTMAP: boolean;
|
|
|
REFLECTION: boolean;
|
|
|
REFLECTIONMAP_3D: boolean;
|
|
|
REFLECTIONMAP_SPHERICAL: boolean;
|
|
@@ -117720,6 +117859,8 @@ declare module BABYLON {
|
|
|
SAMPLER3DGREENDEPTH: boolean;
|
|
|
SAMPLER3DBGRMAP: boolean;
|
|
|
IMAGEPROCESSINGPOSTPROCESS: boolean;
|
|
|
+ /** MISC. */
|
|
|
+ BUMPDIRECTUV: number;
|
|
|
constructor();
|
|
|
setValue(name: string, value: boolean): void;
|
|
|
}
|
|
@@ -118183,6 +118324,12 @@ declare module BABYLON {
|
|
|
[key: string]: string;
|
|
|
};
|
|
|
/**
|
|
|
+ * Gets the list of emitted extensions
|
|
|
+ */
|
|
|
+ extensions: {
|
|
|
+ [key: string]: string;
|
|
|
+ };
|
|
|
+ /**
|
|
|
* Gets the target of the compilation state
|
|
|
*/
|
|
|
target: NodeMaterialBlockTargets;
|
|
@@ -118229,6 +118376,8 @@ declare module BABYLON {
|
|
|
/** @hidden */
|
|
|
_getGLType(type: NodeMaterialBlockConnectionPointTypes): string;
|
|
|
/** @hidden */
|
|
|
+ _emitExtension(name: string, extension: string): void;
|
|
|
+ /** @hidden */
|
|
|
_emitFunction(name: string, code: string, comments: string): void;
|
|
|
/** @hidden */
|
|
|
_emitCodeFromInclude(includeName: string, comments: string, options?: {
|
|
@@ -118598,6 +118747,7 @@ declare module BABYLON {
|
|
|
*/
|
|
|
animate(scene: Scene): void;
|
|
|
private _emitDefine;
|
|
|
+ initialize(state: NodeMaterialBuildState): void;
|
|
|
/**
|
|
|
* Set the input block to its default value (based on its type)
|
|
|
*/
|
|
@@ -118979,6 +119129,59 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
+ * Block used to pertub normals based on a normal map
|
|
|
+ */
|
|
|
+ export class PerturbNormalBlock extends NodeMaterialBlock {
|
|
|
+ private _tangentSpaceParameterName;
|
|
|
+ /** Gets or sets a boolean indicating that normal should be inverted on X axis */
|
|
|
+ invertX: boolean;
|
|
|
+ /** Gets or sets a boolean indicating that normal should be inverted on Y axis */
|
|
|
+ invertY: boolean;
|
|
|
+ /**
|
|
|
+ * Create a new PerturbNormalBlock
|
|
|
+ * @param name defines the block name
|
|
|
+ */
|
|
|
+ constructor(name: string);
|
|
|
+ /**
|
|
|
+ * Gets the current class name
|
|
|
+ * @returns the class name
|
|
|
+ */
|
|
|
+ getClassName(): string;
|
|
|
+ /**
|
|
|
+ * Gets the world position input component
|
|
|
+ */
|
|
|
+ readonly worldPosition: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the world normal input component
|
|
|
+ */
|
|
|
+ readonly worldNormal: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the uv input component
|
|
|
+ */
|
|
|
+ readonly uv: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the normal map color input component
|
|
|
+ */
|
|
|
+ readonly normalMapColor: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the strength input component
|
|
|
+ */
|
|
|
+ readonly strength: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the output component
|
|
|
+ */
|
|
|
+ readonly output: NodeMaterialConnectionPoint;
|
|
|
+ prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
|
+ bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
+ protected _dumpPropertiesCode(): string;
|
|
|
+ serialize(): any;
|
|
|
+ _deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
+ /**
|
|
|
* Block used to add support for scene fog
|
|
|
*/
|
|
|
export class FogBlock extends NodeMaterialBlock {
|
|
@@ -119281,6 +119484,22 @@ declare module BABYLON {
|
|
|
*/
|
|
|
readonly input: NodeMaterialConnectionPoint;
|
|
|
/**
|
|
|
+ * Gets the source min input component
|
|
|
+ */
|
|
|
+ readonly sourceMin: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the source max input component
|
|
|
+ */
|
|
|
+ readonly sourceMax: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the target min input component
|
|
|
+ */
|
|
|
+ readonly targetMin: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the target max input component
|
|
|
+ */
|
|
|
+ readonly targetMax: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
* Gets the output component
|
|
|
*/
|
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
@@ -119687,11 +119906,11 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
- * Block used to get the opposite of a value
|
|
|
+ * Block used to get the opposite (1 - x) of a value
|
|
|
*/
|
|
|
- export class OppositeBlock extends NodeMaterialBlock {
|
|
|
+ export class OneMinusBlock extends NodeMaterialBlock {
|
|
|
/**
|
|
|
- * Creates a new OppositeBlock
|
|
|
+ * Creates a new OneMinusBlock
|
|
|
* @param name defines the block name
|
|
|
*/
|
|
|
constructor(name: string);
|