@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.
27 lines (26 loc) • 918 B
TypeScript
/** This file must only contain pure code and pure imports */
import { type NodeMaterialBuildState } from "../nodeMaterialBuildState.js";
import { TriPlanarBlock } from "./triPlanarBlock.pure.js";
/**
* Block used to read a texture with triplanar mapping (see https://iquilezles.org/articles/biplanar/)
*/
export declare class BiPlanarBlock extends TriPlanarBlock {
/**
* Create a new BiPlanarBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
private _declareLocalVarAsVec3I;
private _getTextureGrad;
protected _generateTextureLookup(state: NodeMaterialBuildState): void;
}
/**
* Register side effects for biPlanarBlock.
* Safe to call multiple times; only the first call has an effect.
*/
export declare function RegisterBiPlanarBlock(): void;