displayPassPostProcess.d.ts 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. import type { Nullable } from "../types";
  2. import type { Camera } from "../Cameras/camera";
  3. import type { PostProcessOptions } from "./postProcess";
  4. import { PostProcess } from "./postProcess";
  5. import type { AbstractEngine } from "../Engines/abstractEngine";
  6. import "../Shaders/displayPass.fragment";
  7. import type { Scene } from "../scene";
  8. /**
  9. * DisplayPassPostProcess which produces an output the same as it's input
  10. */
  11. export declare class DisplayPassPostProcess extends PostProcess {
  12. /**
  13. * Gets a string identifying the name of the class
  14. * @returns "DisplayPassPostProcess" string
  15. */
  16. getClassName(): string;
  17. /**
  18. * Creates the DisplayPassPostProcess
  19. * @param name The name of the effect.
  20. * @param options The required width/height ratio to downsize to before computing the render pass.
  21. * @param camera The camera to apply the render pass to.
  22. * @param samplingMode The sampling mode to be used when computing the pass. (default: 0)
  23. * @param engine The engine which the post process will be applied. (default: current engine)
  24. * @param reusable If the post process can be reused on the same frame. (default: false)
  25. */
  26. constructor(name: string, options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: AbstractEngine, reusable?: boolean);
  27. /**
  28. * @internal
  29. */
  30. static _Parse(parsedPostProcess: any, targetCamera: Camera, scene: Scene, rootUrl: string): Nullable<DisplayPassPostProcess>;
  31. }