@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.
33 lines (32 loc) • 1 kB
TypeScript
import { NodeMaterialBlock } from "../nodeMaterialBlock.js";
import type { NodeMaterialBuildState } from "../nodeMaterialBuildState.js";
import type { Scene } from "../../../scene.js";
/**
* Custom block created from user-defined json
*/
export declare class CustomBlock extends NodeMaterialBlock {
private _options;
private _code;
private _inputSamplers;
/**
* Gets or sets the options for this custom block
*/
get options(): any;
set options(options: any);
/**
* Creates a new CustomBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
protected _buildBlock(state: NodeMaterialBuildState): this;
protected _dumpPropertiesCode(): string;
serialize(): any;
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
private _deserializeOptions;
private _findInputByName;
}