highlightsPostProcess.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829
  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 { Engine } from "../Engines/engine";
  6. import "../Shaders/highlights.fragment";
  7. /**
  8. * Extracts highlights from the image
  9. * @see https://doc.babylonjs.com/features/featuresDeepDive/postProcesses/usePostProcesses
  10. */
  11. export declare class HighlightsPostProcess extends PostProcess {
  12. /**
  13. * Gets a string identifying the name of the class
  14. * @returns "HighlightsPostProcess" string
  15. */
  16. getClassName(): string;
  17. /**
  18. * Extracts highlights from the image
  19. * @see https://doc.babylonjs.com/features/featuresDeepDive/postProcesses/usePostProcesses
  20. * @param name The name of the effect.
  21. * @param options The required width/height ratio to downsize to before computing the render pass.
  22. * @param camera The camera to apply the render pass to.
  23. * @param samplingMode The sampling mode to be used when computing the pass. (default: 0)
  24. * @param engine The engine which the post process will be applied. (default: current engine)
  25. * @param reusable If the post process can be reused on the same frame. (default: false)
  26. * @param textureType Type of texture for the post process (default: Engine.TEXTURETYPE_UNSIGNED_INT)
  27. */
  28. constructor(name: string, options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: Engine, reusable?: boolean, textureType?: number);
  29. }