@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
60 lines (59 loc) • 2.1 kB
TypeScript
import { NodeMaterialBlock } from "../../nodeMaterialBlock.js";
import type { NodeMaterialBuildState } from "../../nodeMaterialBuildState.js";
import { NodeMaterialBlockTargets } from "../../Enums/nodeMaterialBlockTargets.js";
import type { NodeMaterialConnectionPoint } from "../../nodeMaterialBlockConnectionPoint.js";
import type { NodeMaterial, NodeMaterialDefines } from "../../nodeMaterial.js";
import type { AbstractMesh } from "../../../../Meshes/abstractMesh.js";
/**
* Block used to implement TBN matrix
*/
export declare class TBNBlock extends NodeMaterialBlock {
/**
* Create a new TBNBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
/**
* Initialize the block and prepare the context for build
* @param state defines the state that will be used for the build
*/
initialize(state: NodeMaterialBuildState): void;
/**
* Gets the normal input component
*/
get normal(): NodeMaterialConnectionPoint;
/**
* Gets the tangent input component
*/
get tangent(): NodeMaterialConnectionPoint;
/**
* Gets the world matrix input component
*/
get world(): NodeMaterialConnectionPoint;
/**
* Gets the TBN output component
*/
get TBN(): NodeMaterialConnectionPoint;
/**
* Gets the row0 of the output matrix
*/
get row0(): NodeMaterialConnectionPoint;
/**
* Gets the row1 of the output matrix
*/
get row1(): NodeMaterialConnectionPoint;
/**
* Gets the row2 of the output matrix
*/
get row2(): NodeMaterialConnectionPoint;
get target(): NodeMaterialBlockTargets;
set target(value: NodeMaterialBlockTargets);
autoConfigure(material: NodeMaterial, additionalFilteringInfo?: (node: NodeMaterialBlock) => boolean): void;
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
protected _buildBlock(state: NodeMaterialBuildState): this;
}