|
@@ -54292,7 +54292,7 @@ declare module "babylonjs/Materials/Node/Blocks/Dual/reflectionTextureBlock" {
|
|
* Gets the b output component
|
|
* Gets the b output component
|
|
*/
|
|
*/
|
|
readonly b: NodeMaterialConnectionPoint;
|
|
readonly b: NodeMaterialConnectionPoint;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
isReady(): boolean;
|
|
isReady(): boolean;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
@@ -54453,6 +54453,18 @@ declare module "babylonjs/Materials/Node/nodeMaterial" {
|
|
*/
|
|
*/
|
|
getBlockByName(name: string): Nullable<NodeMaterialBlock>;
|
|
getBlockByName(name: string): Nullable<NodeMaterialBlock>;
|
|
/**
|
|
/**
|
|
|
|
+ * Get a block by its name
|
|
|
|
+ * @param predicate defines the predicate used to find the good candidate
|
|
|
|
+ * @returns the required block or null if not found
|
|
|
|
+ */
|
|
|
|
+ getBlockByPredicate(predicate: (block: NodeMaterialBlock) => boolean): Nullable<NodeMaterialBlock>;
|
|
|
|
+ /**
|
|
|
|
+ * Get an input block by its name
|
|
|
|
+ * @param predicate defines the predicate used to find the good candidate
|
|
|
|
+ * @returns the required input block or null if not found
|
|
|
|
+ */
|
|
|
|
+ getInputBlockByPredicate(predicate: (block: InputBlock) => boolean): Nullable<InputBlock>;
|
|
|
|
+ /**
|
|
* Gets the list of input blocks attached to this material
|
|
* Gets the list of input blocks attached to this material
|
|
* @returns an array of InputBlocks
|
|
* @returns an array of InputBlocks
|
|
*/
|
|
*/
|
|
@@ -54678,7 +54690,7 @@ declare module "babylonjs/Materials/Node/Blocks/Dual/textureBlock" {
|
|
*/
|
|
*/
|
|
readonly a: NodeMaterialConnectionPoint;
|
|
readonly a: NodeMaterialConnectionPoint;
|
|
readonly target: NodeMaterialBlockTargets;
|
|
readonly target: NodeMaterialBlockTargets;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
initializeDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
initializeDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
isReady(): boolean;
|
|
isReady(): boolean;
|
|
@@ -55431,7 +55443,7 @@ declare module "babylonjs/Materials/Node/Blocks/Vertex/bonesBlock" {
|
|
* Gets the output component
|
|
* Gets the output component
|
|
*/
|
|
*/
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
provideFallbacks(mesh: AbstractMesh, fallbacks: EffectFallbacks): void;
|
|
provideFallbacks(mesh: AbstractMesh, fallbacks: EffectFallbacks): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
@@ -55483,7 +55495,7 @@ declare module "babylonjs/Materials/Node/Blocks/Vertex/instancesBlock" {
|
|
* Gets the output component
|
|
* Gets the output component
|
|
*/
|
|
*/
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
}
|
|
}
|
|
@@ -55545,7 +55557,7 @@ declare module "babylonjs/Materials/Node/Blocks/Vertex/morphTargetsBlock" {
|
|
*/
|
|
*/
|
|
readonly uvOutput: NodeMaterialConnectionPoint;
|
|
readonly uvOutput: NodeMaterialConnectionPoint;
|
|
initialize(state: NodeMaterialBuildState): void;
|
|
initialize(state: NodeMaterialBuildState): void;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
replaceRepeatableContent(vertexShaderState: NodeMaterialBuildState, fragmentShaderState: NodeMaterialBuildState, mesh: AbstractMesh, defines: NodeMaterialDefines): void;
|
|
replaceRepeatableContent(vertexShaderState: NodeMaterialBuildState, fragmentShaderState: NodeMaterialBuildState, mesh: AbstractMesh, defines: NodeMaterialDefines): void;
|
|
@@ -55595,53 +55607,6 @@ declare module "babylonjs/Materials/Node/Blocks/Fragment/alphaTestBlock" {
|
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-declare module "babylonjs/Materials/Node/Blocks/Fragment/fresnelBlock" {
|
|
|
|
- import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
|
|
- import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
|
|
- import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
|
|
- import { NodeMaterial } from "babylonjs/Materials/Node/nodeMaterial";
|
|
|
|
- /**
|
|
|
|
- * Block used to compute fresnel value
|
|
|
|
- */
|
|
|
|
- export class FresnelBlock extends NodeMaterialBlock {
|
|
|
|
- /**
|
|
|
|
- * Create a new FresnelBlock
|
|
|
|
- * @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 camera (or eye) position component
|
|
|
|
- */
|
|
|
|
- readonly cameraPosition: NodeMaterialConnectionPoint;
|
|
|
|
- /**
|
|
|
|
- * Gets the bias input component
|
|
|
|
- */
|
|
|
|
- readonly bias: NodeMaterialConnectionPoint;
|
|
|
|
- /**
|
|
|
|
- * Gets the camera (or eye) position component
|
|
|
|
- */
|
|
|
|
- readonly power: NodeMaterialConnectionPoint;
|
|
|
|
- /**
|
|
|
|
- * Gets the fresnel output component
|
|
|
|
- */
|
|
|
|
- readonly fresnel: NodeMaterialConnectionPoint;
|
|
|
|
- autoConfigure(material: NodeMaterial): void;
|
|
|
|
- protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
declare module "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock" {
|
|
declare module "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock" {
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
@@ -55686,7 +55651,6 @@ declare module "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock" {
|
|
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/fresnelBlock";
|
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/imageProcessingBlock";
|
|
}
|
|
}
|
|
declare module "babylonjs/Materials/Node/Blocks/Dual/fogBlock" {
|
|
declare module "babylonjs/Materials/Node/Blocks/Dual/fogBlock" {
|
|
@@ -55733,7 +55697,7 @@ declare module "babylonjs/Materials/Node/Blocks/Dual/fogBlock" {
|
|
* Gets the output component
|
|
* Gets the output component
|
|
*/
|
|
*/
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
@@ -55789,7 +55753,7 @@ declare module "babylonjs/Materials/Node/Blocks/Dual/lightBlock" {
|
|
* Gets the specular output component
|
|
* Gets the specular output component
|
|
*/
|
|
*/
|
|
readonly specularOutput: NodeMaterialConnectionPoint;
|
|
readonly specularOutput: NodeMaterialConnectionPoint;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
updateUniformsAndSamples(state: NodeMaterialBuildState, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
updateUniformsAndSamples(state: NodeMaterialBuildState, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
@@ -56476,6 +56440,113 @@ declare module "babylonjs/Materials/Node/Blocks/stepBlock" {
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+declare module "babylonjs/Materials/Node/Blocks/oppositeBlock" {
|
|
|
|
+ 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
|
|
|
|
+ */
|
|
|
|
+ export class OppositeBlock extends NodeMaterialBlock {
|
|
|
|
+ /**
|
|
|
|
+ * Creates a new OppositeBlock
|
|
|
|
+ * @param name defines the block name
|
|
|
|
+ */
|
|
|
|
+ constructor(name: string);
|
|
|
|
+ /**
|
|
|
|
+ * Gets the current class name
|
|
|
|
+ * @returns the class name
|
|
|
|
+ */
|
|
|
|
+ getClassName(): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the input component
|
|
|
|
+ */
|
|
|
|
+ readonly input: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the output component
|
|
|
|
+ */
|
|
|
|
+ readonly output: NodeMaterialConnectionPoint;
|
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module "babylonjs/Materials/Node/Blocks/viewDirectionBlock" {
|
|
|
|
+ import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
|
|
+ import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
|
|
+ import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
|
|
+ import { NodeMaterial } from "babylonjs/Materials/Node/nodeMaterial";
|
|
|
|
+ /**
|
|
|
|
+ * Block used to get the view direction
|
|
|
|
+ */
|
|
|
|
+ export class ViewDirectionBlock extends NodeMaterialBlock {
|
|
|
|
+ /**
|
|
|
|
+ * Creates a new ViewDirectionBlock
|
|
|
|
+ * @param name defines the block name
|
|
|
|
+ */
|
|
|
|
+ constructor(name: string);
|
|
|
|
+ /**
|
|
|
|
+ * Gets the current class name
|
|
|
|
+ * @returns the class name
|
|
|
|
+ */
|
|
|
|
+ getClassName(): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world position component
|
|
|
|
+ */
|
|
|
|
+ readonly worldPosition: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the camera position component
|
|
|
|
+ */
|
|
|
|
+ readonly cameraPosition: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the output component
|
|
|
|
+ */
|
|
|
|
+ readonly output: NodeMaterialConnectionPoint;
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module "babylonjs/Materials/Node/Blocks/fresnelBlock" {
|
|
|
|
+ import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
|
|
+ import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
|
|
+ import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
|
|
+ import { NodeMaterial } from "babylonjs/Materials/Node/nodeMaterial";
|
|
|
|
+ /**
|
|
|
|
+ * Block used to compute fresnel value
|
|
|
|
+ */
|
|
|
|
+ export class FresnelBlock extends NodeMaterialBlock {
|
|
|
|
+ /**
|
|
|
|
+ * Create a new FresnelBlock
|
|
|
|
+ * @param name defines the block name
|
|
|
|
+ */
|
|
|
|
+ constructor(name: string);
|
|
|
|
+ /**
|
|
|
|
+ * Gets the current class name
|
|
|
|
+ * @returns the class name
|
|
|
|
+ */
|
|
|
|
+ getClassName(): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world normal input component
|
|
|
|
+ */
|
|
|
|
+ readonly worldNormal: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the view direction input component
|
|
|
|
+ */
|
|
|
|
+ readonly viewDirection: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the bias input component
|
|
|
|
+ */
|
|
|
|
+ readonly bias: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the camera (or eye) position component
|
|
|
|
+ */
|
|
|
|
+ readonly power: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the fresnel output component
|
|
|
|
+ */
|
|
|
|
+ readonly fresnel: NodeMaterialConnectionPoint;
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
|
+ }
|
|
|
|
+}
|
|
declare module "babylonjs/Materials/Node/Blocks/index" {
|
|
declare module "babylonjs/Materials/Node/Blocks/index" {
|
|
export * from "babylonjs/Materials/Node/Blocks/Vertex/index";
|
|
export * from "babylonjs/Materials/Node/Blocks/Vertex/index";
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/index";
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/index";
|
|
@@ -56499,6 +56570,9 @@ declare module "babylonjs/Materials/Node/Blocks/index" {
|
|
export * from "babylonjs/Materials/Node/Blocks/divideBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/divideBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/subtractBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/subtractBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/stepBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/stepBlock";
|
|
|
|
+ export * from "babylonjs/Materials/Node/Blocks/oppositeBlock";
|
|
|
|
+ export * from "babylonjs/Materials/Node/Blocks/viewDirectionBlock";
|
|
|
|
+ export * from "babylonjs/Materials/Node/Blocks/fresnelBlock";
|
|
}
|
|
}
|
|
declare module "babylonjs/Materials/Node/Optimizers/index" {
|
|
declare module "babylonjs/Materials/Node/Optimizers/index" {
|
|
export * from "babylonjs/Materials/Node/Optimizers/nodeMaterialOptimizer";
|
|
export * from "babylonjs/Materials/Node/Optimizers/nodeMaterialOptimizer";
|
|
@@ -116803,7 +116877,7 @@ declare module BABYLON {
|
|
* Gets the b output component
|
|
* Gets the b output component
|
|
*/
|
|
*/
|
|
readonly b: NodeMaterialConnectionPoint;
|
|
readonly b: NodeMaterialConnectionPoint;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
isReady(): boolean;
|
|
isReady(): boolean;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
@@ -116948,6 +117022,18 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
getBlockByName(name: string): Nullable<NodeMaterialBlock>;
|
|
getBlockByName(name: string): Nullable<NodeMaterialBlock>;
|
|
/**
|
|
/**
|
|
|
|
+ * Get a block by its name
|
|
|
|
+ * @param predicate defines the predicate used to find the good candidate
|
|
|
|
+ * @returns the required block or null if not found
|
|
|
|
+ */
|
|
|
|
+ getBlockByPredicate(predicate: (block: NodeMaterialBlock) => boolean): Nullable<NodeMaterialBlock>;
|
|
|
|
+ /**
|
|
|
|
+ * Get an input block by its name
|
|
|
|
+ * @param predicate defines the predicate used to find the good candidate
|
|
|
|
+ * @returns the required input block or null if not found
|
|
|
|
+ */
|
|
|
|
+ getInputBlockByPredicate(predicate: (block: InputBlock) => boolean): Nullable<InputBlock>;
|
|
|
|
+ /**
|
|
* Gets the list of input blocks attached to this material
|
|
* Gets the list of input blocks attached to this material
|
|
* @returns an array of InputBlocks
|
|
* @returns an array of InputBlocks
|
|
*/
|
|
*/
|
|
@@ -117162,7 +117248,7 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
readonly a: NodeMaterialConnectionPoint;
|
|
readonly a: NodeMaterialConnectionPoint;
|
|
readonly target: NodeMaterialBlockTargets;
|
|
readonly target: NodeMaterialBlockTargets;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
initializeDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
initializeDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
isReady(): boolean;
|
|
isReady(): boolean;
|
|
@@ -117874,7 +117960,7 @@ declare module BABYLON {
|
|
* Gets the output component
|
|
* Gets the output component
|
|
*/
|
|
*/
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
provideFallbacks(mesh: AbstractMesh, fallbacks: EffectFallbacks): void;
|
|
provideFallbacks(mesh: AbstractMesh, fallbacks: EffectFallbacks): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
@@ -117921,7 +118007,7 @@ declare module BABYLON {
|
|
* Gets the output component
|
|
* Gets the output component
|
|
*/
|
|
*/
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
}
|
|
}
|
|
@@ -117976,7 +118062,7 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
readonly uvOutput: NodeMaterialConnectionPoint;
|
|
readonly uvOutput: NodeMaterialConnectionPoint;
|
|
initialize(state: NodeMaterialBuildState): void;
|
|
initialize(state: NodeMaterialBuildState): void;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
replaceRepeatableContent(vertexShaderState: NodeMaterialBuildState, fragmentShaderState: NodeMaterialBuildState, mesh: AbstractMesh, defines: NodeMaterialDefines): void;
|
|
replaceRepeatableContent(vertexShaderState: NodeMaterialBuildState, fragmentShaderState: NodeMaterialBuildState, mesh: AbstractMesh, defines: NodeMaterialDefines): void;
|
|
@@ -118018,49 +118104,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
- * Block used to compute fresnel value
|
|
|
|
- */
|
|
|
|
- export class FresnelBlock extends NodeMaterialBlock {
|
|
|
|
- /**
|
|
|
|
- * Create a new FresnelBlock
|
|
|
|
- * @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 camera (or eye) position component
|
|
|
|
- */
|
|
|
|
- readonly cameraPosition: NodeMaterialConnectionPoint;
|
|
|
|
- /**
|
|
|
|
- * Gets the bias input component
|
|
|
|
- */
|
|
|
|
- readonly bias: NodeMaterialConnectionPoint;
|
|
|
|
- /**
|
|
|
|
- * Gets the camera (or eye) position component
|
|
|
|
- */
|
|
|
|
- readonly power: NodeMaterialConnectionPoint;
|
|
|
|
- /**
|
|
|
|
- * Gets the fresnel output component
|
|
|
|
- */
|
|
|
|
- readonly fresnel: NodeMaterialConnectionPoint;
|
|
|
|
- autoConfigure(material: NodeMaterial): void;
|
|
|
|
- protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-declare module BABYLON {
|
|
|
|
- /**
|
|
|
|
* Block used to add image processing support to fragment shader
|
|
* Block used to add image processing support to fragment shader
|
|
*/
|
|
*/
|
|
export class ImageProcessingBlock extends NodeMaterialBlock {
|
|
export class ImageProcessingBlock extends NodeMaterialBlock {
|
|
@@ -118130,7 +118173,7 @@ declare module BABYLON {
|
|
* Gets the output component
|
|
* Gets the output component
|
|
*/
|
|
*/
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
readonly output: NodeMaterialConnectionPoint;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
@@ -118176,7 +118219,7 @@ declare module BABYLON {
|
|
* Gets the specular output component
|
|
* Gets the specular output component
|
|
*/
|
|
*/
|
|
readonly specularOutput: NodeMaterialConnectionPoint;
|
|
readonly specularOutput: NodeMaterialConnectionPoint;
|
|
- autoConfigure(): void;
|
|
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
updateUniformsAndSamples(state: NodeMaterialBuildState, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
updateUniformsAndSamples(state: NodeMaterialBuildState, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
@@ -118801,6 +118844,102 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
|
|
+ * Block used to get the opposite of a value
|
|
|
|
+ */
|
|
|
|
+ export class OppositeBlock extends NodeMaterialBlock {
|
|
|
|
+ /**
|
|
|
|
+ * Creates a new OppositeBlock
|
|
|
|
+ * @param name defines the block name
|
|
|
|
+ */
|
|
|
|
+ constructor(name: string);
|
|
|
|
+ /**
|
|
|
|
+ * Gets the current class name
|
|
|
|
+ * @returns the class name
|
|
|
|
+ */
|
|
|
|
+ getClassName(): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the input component
|
|
|
|
+ */
|
|
|
|
+ readonly input: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the output component
|
|
|
|
+ */
|
|
|
|
+ readonly output: NodeMaterialConnectionPoint;
|
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
|
|
+ * Block used to get the view direction
|
|
|
|
+ */
|
|
|
|
+ export class ViewDirectionBlock extends NodeMaterialBlock {
|
|
|
|
+ /**
|
|
|
|
+ * Creates a new ViewDirectionBlock
|
|
|
|
+ * @param name defines the block name
|
|
|
|
+ */
|
|
|
|
+ constructor(name: string);
|
|
|
|
+ /**
|
|
|
|
+ * Gets the current class name
|
|
|
|
+ * @returns the class name
|
|
|
|
+ */
|
|
|
|
+ getClassName(): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world position component
|
|
|
|
+ */
|
|
|
|
+ readonly worldPosition: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the camera position component
|
|
|
|
+ */
|
|
|
|
+ readonly cameraPosition: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the output component
|
|
|
|
+ */
|
|
|
|
+ readonly output: NodeMaterialConnectionPoint;
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
|
|
+ * Block used to compute fresnel value
|
|
|
|
+ */
|
|
|
|
+ export class FresnelBlock extends NodeMaterialBlock {
|
|
|
|
+ /**
|
|
|
|
+ * Create a new FresnelBlock
|
|
|
|
+ * @param name defines the block name
|
|
|
|
+ */
|
|
|
|
+ constructor(name: string);
|
|
|
|
+ /**
|
|
|
|
+ * Gets the current class name
|
|
|
|
+ * @returns the class name
|
|
|
|
+ */
|
|
|
|
+ getClassName(): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world normal input component
|
|
|
|
+ */
|
|
|
|
+ readonly worldNormal: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the view direction input component
|
|
|
|
+ */
|
|
|
|
+ readonly viewDirection: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the bias input component
|
|
|
|
+ */
|
|
|
|
+ readonly bias: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the camera (or eye) position component
|
|
|
|
+ */
|
|
|
|
+ readonly power: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the fresnel output component
|
|
|
|
+ */
|
|
|
|
+ readonly fresnel: NodeMaterialConnectionPoint;
|
|
|
|
+ autoConfigure(material: NodeMaterial): void;
|
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
* Effect Render Options
|
|
* Effect Render Options
|
|
*/
|
|
*/
|
|
export interface IEffectRendererOptions {
|
|
export interface IEffectRendererOptions {
|