tonemapPostProcess.d.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import type { Camera } from "../Cameras/camera";
  2. import { PostProcess } from "./postProcess";
  3. import "../Shaders/tonemap.fragment";
  4. import type { Nullable } from "../types";
  5. import type { Engine } from "../Engines/engine";
  6. /** Defines operator used for tonemapping */
  7. export declare enum TonemappingOperator {
  8. /** Hable */
  9. Hable = 0,
  10. /** Reinhard */
  11. Reinhard = 1,
  12. /** HejiDawson */
  13. HejiDawson = 2,
  14. /** Photographic */
  15. Photographic = 3
  16. }
  17. /**
  18. * Defines a post process to apply tone mapping
  19. */
  20. export declare class TonemapPostProcess extends PostProcess {
  21. private _operator;
  22. /** Defines the required exposure adjustment */
  23. exposureAdjustment: number;
  24. /**
  25. * Gets a string identifying the name of the class
  26. * @returns "TonemapPostProcess" string
  27. */
  28. getClassName(): string;
  29. /**
  30. * Creates a new TonemapPostProcess
  31. * @param name defines the name of the postprocess
  32. * @param _operator defines the operator to use
  33. * @param exposureAdjustment defines the required exposure adjustment
  34. * @param camera defines the camera to use (can be null)
  35. * @param samplingMode defines the required sampling mode (BABYLON.Texture.BILINEAR_SAMPLINGMODE by default)
  36. * @param engine defines the hosting engine (can be ignore if camera is set)
  37. * @param textureFormat defines the texture format to use (BABYLON.Engine.TEXTURETYPE_UNSIGNED_INT by default)
  38. * @param reusable If the post process can be reused on the same frame. (default: false)
  39. */
  40. constructor(name: string, _operator: TonemappingOperator,
  41. /** Defines the required exposure adjustment */
  42. exposureAdjustment: number, camera: Nullable<Camera>, samplingMode?: number, engine?: Engine, textureFormat?: number, reusable?: boolean);
  43. }