@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.
21 lines • 1.01 kB
JavaScript
import { ThinBloomMergePostProcess } from "../../../PostProcesses/thinBloomMergePostProcess.js";
import { FrameGraphPostProcessTask } from "./postProcessTask.js";
/**
* @internal
*/
export class FrameGraphBloomMergeTask extends FrameGraphPostProcessTask {
constructor(name, frameGraph, thinPostProcess) {
super(name, frameGraph, thinPostProcess || new ThinBloomMergePostProcess(name, frameGraph.engine));
}
record(skipCreationOfDisabledPasses = false) {
if (this.sourceTexture === undefined || this.blurTexture === undefined) {
throw new Error(`FrameGraphBloomMergeTask "${this.name}": sourceTexture and blurTexture are required`);
}
const pass = super.record(skipCreationOfDisabledPasses, undefined, (context) => {
context.bindTextureHandle(this._postProcessDrawWrapper.effect, "bloomBlur", this.blurTexture);
});
pass.addDependencies(this.blurTexture);
return pass;
}
}
//# sourceMappingURL=bloomMergeTask.js.map