|
@@ -55161,6 +55161,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;
|
|
@@ -55207,6 +55213,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?: {
|
|
@@ -56027,10 +56035,60 @@ declare module "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock" {
|
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
}
|
|
|
}
|
|
|
+declare module "babylonjs/Materials/Node/Blocks/Fragment/pertubNormalBlock" {
|
|
|
+ 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";
|
|
|
+ /**
|
|
|
+ * Block used to pertub normals based on a normal map
|
|
|
+ */
|
|
|
+ export class PertubNormalBlock extends NodeMaterialBlock {
|
|
|
+ /**
|
|
|
+ * Create a new PertubNormalBlock
|
|
|
+ * @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;
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
+ }
|
|
|
+}
|
|
|
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/pertubNormalBlock";
|
|
|
}
|
|
|
declare module "babylonjs/Materials/Node/Blocks/Dual/fogBlock" {
|
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
@@ -56142,37 +56200,11 @@ declare module "babylonjs/Materials/Node/Blocks/Dual/lightBlock" {
|
|
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
|
}
|
|
|
}
|
|
|
-declare module "babylonjs/Materials/Node/Blocks/Dual/pertubNormalBlock" {
|
|
|
- import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
|
- import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
|
- import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
|
- /**
|
|
|
- * Block used to pertub normals based on a normal map
|
|
|
- */
|
|
|
- export class PertubNormalBlock extends NodeMaterialBlock {
|
|
|
- /**
|
|
|
- * Create a new PertubNormalBlock
|
|
|
- * @param name defines the block name
|
|
|
- */
|
|
|
- constructor(name: string);
|
|
|
- /**
|
|
|
- * Gets the current class name
|
|
|
- * @returns the class name
|
|
|
- */
|
|
|
- getClassName(): string;
|
|
|
- /**
|
|
|
- * Gets the output component
|
|
|
- */
|
|
|
- readonly output: NodeMaterialConnectionPoint;
|
|
|
- protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
- }
|
|
|
-}
|
|
|
declare module "babylonjs/Materials/Node/Blocks/Dual/index" {
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Dual/fogBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Dual/lightBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Dual/textureBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Dual/reflectionTextureBlock";
|
|
|
- export * from "babylonjs/Materials/Node/Blocks/Dual/pertubNormalBlock";
|
|
|
}
|
|
|
declare module "babylonjs/Materials/Node/Blocks/Input/index" {
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Input/inputBlock";
|
|
@@ -118227,6 +118259,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;
|
|
@@ -118273,6 +118311,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?: {
|
|
@@ -119023,6 +119063,50 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
+ * Block used to pertub normals based on a normal map
|
|
|
+ */
|
|
|
+ export class PertubNormalBlock extends NodeMaterialBlock {
|
|
|
+ /**
|
|
|
+ * Create a new PertubNormalBlock
|
|
|
+ * @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;
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
+ /**
|
|
|
* Block used to add support for scene fog
|
|
|
*/
|
|
|
export class FogBlock extends NodeMaterialBlock {
|
|
@@ -119116,28 +119200,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
- * Block used to pertub normals based on a normal map
|
|
|
- */
|
|
|
- export class PertubNormalBlock extends NodeMaterialBlock {
|
|
|
- /**
|
|
|
- * Create a new PertubNormalBlock
|
|
|
- * @param name defines the block name
|
|
|
- */
|
|
|
- constructor(name: string);
|
|
|
- /**
|
|
|
- * Gets the current class name
|
|
|
- * @returns the class name
|
|
|
- */
|
|
|
- getClassName(): string;
|
|
|
- /**
|
|
|
- * Gets the output component
|
|
|
- */
|
|
|
- readonly output: NodeMaterialConnectionPoint;
|
|
|
- protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
- }
|
|
|
-}
|
|
|
-declare module BABYLON {
|
|
|
- /**
|
|
|
* Block used to multiply 2 values
|
|
|
*/
|
|
|
export class MultiplyBlock extends NodeMaterialBlock {
|