@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.
41 lines (40 loc) • 1.46 kB
TypeScript
import type { NodeMaterialBuildState } from "../nodeMaterialBuildState.js";
import { NodeMaterialBlock } from "../nodeMaterialBlock.js";
import type { NodeMaterialConnectionPoint } from "../nodeMaterialBlockConnectionPoint.js";
import type { Scene } from "../../../scene.js";
/**
* Block used to render intermediate debug values
* Please note that the node needs to be active to be generated in the shader
* Only one DebugBlock should be active at a time
*/
export declare class NodeMaterialDebugBlock extends NodeMaterialBlock {
private _isActive;
/** Gets or sets a boolean indicating if we want to render alpha when using a rgba input*/
renderAlpha: boolean;
/**
* Gets or sets a boolean indicating that the block is active
*/
get isActive(): boolean;
set isActive(value: boolean);
/**
* Creates a new NodeMaterialDebugBlock
* @param name defines the block name
*/
constructor(name: string);
/** @internal */
get _isFinalOutputAndActive(): boolean;
/** @internal */
get _hasPrecedence(): boolean;
/**
* Gets the rgba input component
*/
get debug(): NodeMaterialConnectionPoint;
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
protected _buildBlock(state: NodeMaterialBuildState): this;
serialize(): any;
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
}