sharpenPostProcess.d.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 "../Shaders/sharpen.fragment";
  6. import type { AbstractEngine } from "../Engines/abstractEngine";
  7. import type { Scene } from "../scene";
  8. /**
  9. * The SharpenPostProcess applies a sharpen kernel to every pixel
  10. * See http://en.wikipedia.org/wiki/Kernel_(image_processing)
  11. */
  12. export declare class SharpenPostProcess extends PostProcess {
  13. /**
  14. * How much of the original color should be applied. Setting this to 0 will display edge detection. (default: 1)
  15. */
  16. colorAmount: number;
  17. /**
  18. * How much sharpness should be applied (default: 0.3)
  19. */
  20. edgeAmount: number;
  21. /**
  22. * Gets a string identifying the name of the class
  23. * @returns "SharpenPostProcess" string
  24. */
  25. getClassName(): string;
  26. /**
  27. * Creates a new instance ConvolutionPostProcess
  28. * @param name The name of the effect.
  29. * @param options The required width/height ratio to downsize to before computing the render pass.
  30. * @param camera The camera to apply the render pass to.
  31. * @param samplingMode The sampling mode to be used when computing the pass. (default: 0)
  32. * @param engine The engine which the post process will be applied. (default: current engine)
  33. * @param reusable If the post process can be reused on the same frame. (default: false)
  34. * @param textureType Type of textures used when performing the post process. (default: 0)
  35. * @param blockCompilation If compilation of the shader should not be done in the constructor. The updateEffect method can be used to compile the shader at a later time. (default: false)
  36. */
  37. constructor(name: string, options: number | PostProcessOptions, camera: Nullable<Camera>, samplingMode?: number, engine?: AbstractEngine, reusable?: boolean, textureType?: number, blockCompilation?: boolean);
  38. /**
  39. * @internal
  40. */
  41. static _Parse(parsedPostProcess: any, targetCamera: Camera, scene: Scene, rootUrl: string): SharpenPostProcess;
  42. }