@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.
39 lines (38 loc) • 1.7 kB
TypeScript
import type { Scene, FrameGraph } from "../../../../index.js";
import { Vector2 } from "../../../../Maths/math.vector.js";
import { FrameGraphChromaticAberrationTask } from "../../../Tasks/PostProcesses/chromaticAberrationTask.js";
import { NodeRenderGraphBasePostProcessBlock } from "./basePostProcessBlock.js";
/**
* Block that implements the chromatic aberration post process
*/
export declare class NodeRenderGraphChromaticAberrationPostProcessBlock extends NodeRenderGraphBasePostProcessBlock {
protected _frameGraphTask: FrameGraphChromaticAberrationTask;
/**
* Gets the frame graph task associated with this block
*/
get task(): FrameGraphChromaticAberrationTask;
/**
* Create a new chromatic aberration 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 amount of separation of rgb channels */
get aberrationAmount(): number;
set aberrationAmount(value: number);
/** The amount the effect will increase for pixels closer to the edge of the screen */
get radialIntensity(): number;
set radialIntensity(value: number);
/** The normalized direction in which the rgb channels should be separated. If set to 0,0 radial direction will be used. */
get direction(): Vector2;
set direction(value: Vector2);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
protected _dumpPropertiesCode(): string;
serialize(): any;
_deserialize(serializationObject: any): void;
}