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.

54 lines (53 loc) 1.95 kB
import { NodeMaterialBlock } from "../../nodeMaterialBlock.js"; import type { NodeMaterialConnectionPoint } from "../../nodeMaterialBlockConnectionPoint.js"; import type { NodeMaterialBuildState } from "../../nodeMaterialBuildState.js"; import type { AbstractMesh } from "../../../../Meshes/abstractMesh.js"; import type { NodeMaterial, NodeMaterialDefines } from "../../nodeMaterial.js"; import type { SubMesh } from "../../../../Meshes/subMesh.js"; /** * Block used to add support for instances * @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/copies/instances */ export declare class InstancesBlock extends NodeMaterialBlock { /** * Creates a new InstancesBlock * @param name defines the block name */ constructor(name: string); /** * Gets the current class name * @returns the class name */ getClassName(): string; /** * Gets the first world row input component */ get world0(): NodeMaterialConnectionPoint; /** * Gets the second world row input component */ get world1(): NodeMaterialConnectionPoint; /** * Gets the third world row input component */ get world2(): NodeMaterialConnectionPoint; /** * Gets the forth world row input component */ get world3(): NodeMaterialConnectionPoint; /** * Gets the world input component */ get world(): NodeMaterialConnectionPoint; /** * Gets the output component */ get output(): NodeMaterialConnectionPoint; /** * Gets the instanceID component */ get instanceID(): NodeMaterialConnectionPoint; autoConfigure(material: NodeMaterial, additionalFilteringInfo?: (node: NodeMaterialBlock) => boolean): void; prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean, subMesh?: SubMesh): void; protected _buildBlock(state: NodeMaterialBuildState): this; }