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.09 kB
/** 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 get negative version of a value (i.e. x * -1) */ export declare class NegateBlock extends NodeMaterialBlock { /** * Creates a new NegateBlock * @param name defines the block name */ constructor(name: string); /** * Gets the current class name * @returns the class name */ getClassName(): string; /** * Gets the value input component */ get value(): NodeMaterialConnectionPoint; /** * Gets the output component */ get output(): NodeMaterialConnectionPoint; protected _buildBlock(state: NodeMaterialBuildState): this; } /** * Register side effects for negateBlock. * Safe to call multiple times; only the first call has an effect. */ export declare function RegisterNegateBlock(): void;