@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.
46 lines (45 loc) • 1.28 kB
TypeScript
import { NodeMaterialBlock } from "../nodeMaterialBlock.js";
import type { NodeMaterialBuildState } from "../nodeMaterialBuildState.js";
import type { NodeMaterialConnectionPoint } from "../nodeMaterialBlockConnectionPoint.js";
import type { Scene } from "../../../scene.js";
/**
* Operations supported by the Wave block
*/
export declare enum WaveBlockKind {
/** SawTooth */
SawTooth = 0,
/** Square */
Square = 1,
/** Triangle */
Triangle = 2
}
/**
* Block used to apply wave operation to floats
*/
export declare class WaveBlock extends NodeMaterialBlock {
/**
* Gets or sets the kibnd of wave to be applied by the block
*/
kind: WaveBlockKind;
/**
* Creates a new WaveBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
/**
* Gets the input component
*/
get input(): NodeMaterialConnectionPoint;
/**
* Gets the output component
*/
get output(): NodeMaterialConnectionPoint;
protected _buildBlock(state: NodeMaterialBuildState): this;
serialize(): any;
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
}