UNPKG

@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.

42 lines (41 loc) 1.35 kB
import { NodeMaterialBlock } from "../../nodeMaterialBlock.js"; import type { NodeMaterialBuildState } from "../../nodeMaterialBuildState.js"; import type { NodeMaterialConnectionPoint } from "../../nodeMaterialBlockConnectionPoint.js"; /** * Block used to output the depth to a shadow map */ export declare class ShadowMapBlock extends NodeMaterialBlock { /** * Create a new ShadowMapBlock * @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; private _initShaderSourceAsync; /** * Gets the world position input component */ get worldPosition(): NodeMaterialConnectionPoint; /** * Gets the view x projection input component */ get viewProjection(): NodeMaterialConnectionPoint; /** * Gets the world normal input component */ get worldNormal(): NodeMaterialConnectionPoint; /** * Gets the depth output component */ get depth(): NodeMaterialConnectionPoint; protected _buildBlock(state: NodeMaterialBuildState): this; }