@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.
53 lines (52 loc) • 1.95 kB
TypeScript
import { type NodeRenderGraphConnectionPoint, type Scene, type NodeRenderGraphBuildState, type FrameGraphTextureHandle, type FrameGraph, type FrameGraphTask } from "../../../../index.js";
import { NodeRenderGraphBlock } from "../../nodeRenderGraphBlock.js";
interface IPostProcessLike {
sourceSamplingMode: number;
get alphaMode(): number;
set alphaMode(mode: number);
sourceTexture?: FrameGraphTextureHandle;
targetTexture?: FrameGraphTextureHandle;
outputTexture: FrameGraphTextureHandle;
}
/**
* Base class for post process like blocks.
*/
export declare class NodeRenderGraphBasePostProcessBlock extends NodeRenderGraphBlock {
protected _frameGraphTask: IPostProcessLike & FrameGraphTask;
/**
* Create a new NodeRenderGraphBasePostProcessBlock
* @param name defines the block name
* @param frameGraph defines the hosting frame graph
* @param scene defines the hosting scene
*/
constructor(name: string, frameGraph: FrameGraph, scene: Scene);
protected _finalizeInputOutputRegistering(): void;
/** Sampling mode used to sample from the source texture */
get sourceSamplingMode(): number;
set sourceSamplingMode(value: number);
/** The alpha mode to use when applying the post process. */
get alphaMode(): number;
set alphaMode(value: number);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
/**
* Gets the source input component
*/
get source(): NodeRenderGraphConnectionPoint;
/**
* Gets the target input component
*/
get target(): NodeRenderGraphConnectionPoint;
/**
* Gets the output component
*/
get output(): NodeRenderGraphConnectionPoint;
protected _buildBlock(state: NodeRenderGraphBuildState): void;
protected _dumpPropertiesCode(): string;
serialize(): any;
_deserialize(serializationObject: any): void;
}
export {};