@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.
70 lines (69 loc) • 2.21 kB
TypeScript
/** This file must only contain pure code and pure imports */
import { NodeMaterialBlock } from "../../nodeMaterialBlock.js";
import { type NodeMaterialBuildState } from "../../nodeMaterialBuildState.js";
import { type NodeMaterialConnectionPoint } from "../../nodeMaterialBlockConnectionPoint.js";
/**
* Block used to output values on the prepass textures
* @see https://playground.babylonjs.com/#WW65SN#9
*/
export declare class PrePassOutputBlock extends NodeMaterialBlock {
/**
* Create a new PrePassOutputBlock
* @param name defines the block name
*/
constructor(name: 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;
private _initShaderSourceAsync;
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
/**
* Gets the view depth component
*/
get viewDepth(): NodeMaterialConnectionPoint;
/**
* Gets the screen depth component
*/
get screenDepth(): NodeMaterialConnectionPoint;
/**
* Gets the world position component
*/
get worldPosition(): NodeMaterialConnectionPoint;
/**
* Gets the position in local space component
*/
get localPosition(): NodeMaterialConnectionPoint;
/**
* Gets the view normal component
*/
get viewNormal(): NodeMaterialConnectionPoint;
/**
* Gets the world normal component
*/
get worldNormal(): NodeMaterialConnectionPoint;
/**
* Gets the reflectivity component
*/
get reflectivity(): NodeMaterialConnectionPoint;
/**
* Gets the velocity component
*/
get velocity(): NodeMaterialConnectionPoint;
/**
* Gets the linear velocity component
*/
get velocityLinear(): NodeMaterialConnectionPoint;
private _getFragData;
protected _buildBlock(state: NodeMaterialBuildState): this;
}
/**
* Register side effects for prePassOutputBlock.
* Safe to call multiple times; only the first call has an effect.
*/
export declare function RegisterPrePassOutputBlock(): void;