displayPassPostProcess.ts 1.2 KB

12345678910111213141516171819202122
  1. import { Nullable } from "types";
  2. import { Camera } from "Cameras/camera";
  3. import { PostProcess, PostProcessOptions } from "./postProcess";
  4. import { Engine } from "Engine/engine";
  5. /**
  6. * DisplayPassPostProcess which produces an output the same as it's input
  7. */
  8. export class DisplayPassPostProcess extends PostProcess {
  9. /**
  10. * Creates the DisplayPassPostProcess
  11. * @param name The name of the effect.
  12. * @param options The required width/height ratio to downsize to before computing the render pass.
  13. * @param camera The camera to apply the render pass to.
  14. * @param samplingMode The sampling mode to be used when computing the pass. (default: 0)
  15. * @param engine The engine which the post process will be applied. (default: current engine)
  16. * @param reusable If the post process can be reused on the same frame. (default: false)
  17. */
  18. constructor(name: string, options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: Engine, reusable?: boolean) {
  19. super(name, "displayPass", ["passSampler"], ["passSampler"], options, camera, samplingMode, engine, reusable);
  20. }
  21. }