@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.
36 lines (35 loc) • 1.7 kB
TypeScript
import type { Nullable } from "../types.js";
import type { Matrix } from "../Maths/math.vector.js";
import type { Camera } from "../Cameras/camera.js";
import type { PostProcessOptions } from "./postProcess.js";
import { PostProcess } from "./postProcess.js";
import type { AbstractEngine } from "../Engines/abstractEngine.js";
import type { Scene } from "../scene.js";
/**
* Applies a kernel filter to the image
*/
export declare class FilterPostProcess extends PostProcess {
/** The matrix to be applied to the image */
kernelMatrix: Matrix;
/**
* Gets a string identifying the name of the class
* @returns "FilterPostProcess" string
*/
getClassName(): string;
/**
*
* @param name The name of the effect.
* @param kernelMatrix The matrix to be applied to the image
* @param options The required width/height ratio to downsize to before computing the render pass.
* @param camera The camera to apply the render pass to.
* @param samplingMode The sampling mode to be used when computing the pass. (default: 0)
* @param engine The engine which the post process will be applied. (default: current engine)
* @param reusable If the post process can be reused on the same frame. (default: false)
*/
constructor(name: string, kernelMatrix: Matrix, options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: AbstractEngine, reusable?: boolean);
protected _gatherImports(useWebGPU: boolean, list: Promise<any>[]): void;
/**
* @internal
*/
static _Parse(parsedPostProcess: any, targetCamera: Camera, scene: Scene, rootUrl: string): Nullable<FilterPostProcess>;
}