@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 • 1.38 kB
JavaScript
import { RegisterClass } from "../../../../Misc/typeStore.js";
import { FrameGraphFXAATask } from "../../../Tasks/PostProcesses/fxaaTask.js";
import { ThinFXAAPostProcess } from "../../../../PostProcesses/thinFXAAPostProcess.js";
import { NodeRenderGraphBasePostProcessBlock } from "./basePostProcessBlock.js";
/**
* Block that implements the FXAA post process
*/
export class NodeRenderGraphFXAAPostProcessBlock extends NodeRenderGraphBasePostProcessBlock {
/**
* Gets the frame graph task associated with this block
*/
get task() {
return this._frameGraphTask;
}
/**
* Create a new FXAA post-process block
* @param name defines the block name
* @param frameGraph defines the hosting frame graph
* @param scene defines the hosting scene
*/
constructor(name, frameGraph, scene) {
super(name, frameGraph, scene);
this._finalizeInputOutputRegistering();
this._frameGraphTask = new FrameGraphFXAATask(this.name, frameGraph, new ThinFXAAPostProcess(name, scene.getEngine()));
}
/**
* Gets the current class name
* @returns the class name
*/
getClassName() {
return "NodeRenderGraphFXAAPostProcessBlock";
}
}
RegisterClass("BABYLON.NodeRenderGraphFXAAPostProcessBlock", NodeRenderGraphFXAAPostProcessBlock);
//# sourceMappingURL=fxaaPostProcessBlock.js.map