|
@@ -54679,6 +54679,8 @@ declare module "babylonjs/Materials/Node/nodeMaterial" {
|
|
SAMPLER3DGREENDEPTH: boolean;
|
|
SAMPLER3DGREENDEPTH: boolean;
|
|
SAMPLER3DBGRMAP: boolean;
|
|
SAMPLER3DBGRMAP: boolean;
|
|
IMAGEPROCESSINGPOSTPROCESS: boolean;
|
|
IMAGEPROCESSINGPOSTPROCESS: boolean;
|
|
|
|
+ /** MISC. */
|
|
|
|
+ BUMPDIRECTUV: number;
|
|
constructor();
|
|
constructor();
|
|
setValue(name: string, value: boolean): void;
|
|
setValue(name: string, value: boolean): void;
|
|
}
|
|
}
|
|
@@ -55161,6 +55163,12 @@ declare module "babylonjs/Materials/Node/nodeMaterialBuildState" {
|
|
[key: string]: string;
|
|
[key: string]: string;
|
|
};
|
|
};
|
|
/**
|
|
/**
|
|
|
|
+ * Gets the list of emitted extensions
|
|
|
|
+ */
|
|
|
|
+ extensions: {
|
|
|
|
+ [key: string]: string;
|
|
|
|
+ };
|
|
|
|
+ /**
|
|
* Gets the target of the compilation state
|
|
* Gets the target of the compilation state
|
|
*/
|
|
*/
|
|
target: NodeMaterialBlockTargets;
|
|
target: NodeMaterialBlockTargets;
|
|
@@ -55207,6 +55215,8 @@ declare module "babylonjs/Materials/Node/nodeMaterialBuildState" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_getGLType(type: NodeMaterialBlockConnectionPointTypes): string;
|
|
_getGLType(type: NodeMaterialBlockConnectionPointTypes): string;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
|
|
+ _emitExtension(name: string, extension: string): void;
|
|
|
|
+ /** @hidden */
|
|
_emitFunction(name: string, code: string, comments: string): void;
|
|
_emitFunction(name: string, code: string, comments: string): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_emitCodeFromInclude(includeName: string, comments: string, options?: {
|
|
_emitCodeFromInclude(includeName: string, comments: string, options?: {
|
|
@@ -56027,10 +56037,72 @@ declare module "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock" {
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
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" {
|
|
declare module "babylonjs/Materials/Node/Blocks/Fragment/index" {
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/fragmentOutputBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/fragmentOutputBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/alphaTestBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/alphaTestBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock";
|
|
|
|
+ export * from "babylonjs/Materials/Node/Blocks/Fragment/perturbNormalBlock";
|
|
}
|
|
}
|
|
declare module "babylonjs/Materials/Node/Blocks/Dual/fogBlock" {
|
|
declare module "babylonjs/Materials/Node/Blocks/Dual/fogBlock" {
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
@@ -117738,6 +117810,8 @@ declare module BABYLON {
|
|
SAMPLER3DGREENDEPTH: boolean;
|
|
SAMPLER3DGREENDEPTH: boolean;
|
|
SAMPLER3DBGRMAP: boolean;
|
|
SAMPLER3DBGRMAP: boolean;
|
|
IMAGEPROCESSINGPOSTPROCESS: boolean;
|
|
IMAGEPROCESSINGPOSTPROCESS: boolean;
|
|
|
|
+ /** MISC. */
|
|
|
|
+ BUMPDIRECTUV: number;
|
|
constructor();
|
|
constructor();
|
|
setValue(name: string, value: boolean): void;
|
|
setValue(name: string, value: boolean): void;
|
|
}
|
|
}
|
|
@@ -118201,6 +118275,12 @@ declare module BABYLON {
|
|
[key: string]: string;
|
|
[key: string]: string;
|
|
};
|
|
};
|
|
/**
|
|
/**
|
|
|
|
+ * Gets the list of emitted extensions
|
|
|
|
+ */
|
|
|
|
+ extensions: {
|
|
|
|
+ [key: string]: string;
|
|
|
|
+ };
|
|
|
|
+ /**
|
|
* Gets the target of the compilation state
|
|
* Gets the target of the compilation state
|
|
*/
|
|
*/
|
|
target: NodeMaterialBlockTargets;
|
|
target: NodeMaterialBlockTargets;
|
|
@@ -118247,6 +118327,8 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_getGLType(type: NodeMaterialBlockConnectionPointTypes): string;
|
|
_getGLType(type: NodeMaterialBlockConnectionPointTypes): string;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
|
|
+ _emitExtension(name: string, extension: string): void;
|
|
|
|
+ /** @hidden */
|
|
_emitFunction(name: string, code: string, comments: string): void;
|
|
_emitFunction(name: string, code: string, comments: string): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_emitCodeFromInclude(includeName: string, comments: string, options?: {
|
|
_emitCodeFromInclude(includeName: string, comments: string, options?: {
|
|
@@ -118997,6 +119079,59 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
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
|
|
* Block used to add support for scene fog
|
|
*/
|
|
*/
|
|
export class FogBlock extends NodeMaterialBlock {
|
|
export class FogBlock extends NodeMaterialBlock {
|