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.

34 lines (33 loc) 1.14 kB
import { NodeMaterialBlock } from "../nodeMaterialBlock.js"; import type { NodeMaterialBuildState } from "../nodeMaterialBuildState.js"; import type { NodeMaterialConnectionPoint } from "../nodeMaterialBlockConnectionPoint.js"; import type { NodeMaterial } from "../nodeMaterial.js"; /** * Block used to get the view direction */ export declare 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 */ get worldPosition(): NodeMaterialConnectionPoint; /** * Gets the camera position component */ get cameraPosition(): NodeMaterialConnectionPoint; /** * Gets the output component */ get output(): NodeMaterialConnectionPoint; autoConfigure(material: NodeMaterial, additionalFilteringInfo?: (node: NodeMaterialBlock) => boolean): void; protected _buildBlock(state: NodeMaterialBuildState): this; }