@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.
35 lines (34 loc) • 1.28 kB
TypeScript
import type { Scene, FrameGraph } from "../../../../index.js";
import { FrameGraphGrainTask } from "../../../Tasks/PostProcesses/grainTask.js";
import { NodeRenderGraphBasePostProcessBlock } from "./basePostProcessBlock.js";
/**
* Block that implements the grain post process
*/
export declare class NodeRenderGraphGrainPostProcessBlock extends NodeRenderGraphBasePostProcessBlock {
protected _frameGraphTask: FrameGraphGrainTask;
/**
* Gets the frame graph task associated with this block
*/
get task(): FrameGraphGrainTask;
/**
* Create a new grain post process block
* @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);
/** The intensity of the grain added */
get intensity(): number;
set intensity(value: number);
/** If the grain should be randomized on every frame */
get animated(): boolean;
set animated(value: boolean);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
protected _dumpPropertiesCode(): string;
serialize(): any;
_deserialize(serializationObject: any): void;
}