extractHighlightsPostProcess.d.ts 1.2 KB

12345678910111213141516171819202122232425262728
  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/extractHighlights.fragment";
  7. /**
  8. * The extract highlights post process sets all pixels to black except pixels above the specified luminance threshold. Used as the first step for a bloom effect.
  9. */
  10. export declare class ExtractHighlightsPostProcess extends PostProcess {
  11. /**
  12. * The luminance threshold, pixels below this value will be set to black.
  13. */
  14. threshold: number;
  15. /** @internal */
  16. _exposure: number;
  17. /**
  18. * Post process which has the input texture to be used when performing highlight extraction
  19. * @internal
  20. */
  21. _inputPostProcess: Nullable<PostProcess>;
  22. /**
  23. * Gets a string identifying the name of the class
  24. * @returns "ExtractHighlightsPostProcess" string
  25. */
  26. getClassName(): string;
  27. constructor(name: string, options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: AbstractEngine, reusable?: boolean, textureType?: number, blockCompilation?: boolean);
  28. }