highlightsPostProcess.js 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. import { PostProcess } from "./postProcess.js";
  2. import "../Shaders/highlights.fragment.js";
  3. /**
  4. * Extracts highlights from the image
  5. * @see https://doc.babylonjs.com/features/featuresDeepDive/postProcesses/usePostProcesses
  6. */
  7. export class HighlightsPostProcess extends PostProcess {
  8. /**
  9. * Gets a string identifying the name of the class
  10. * @returns "HighlightsPostProcess" string
  11. */
  12. getClassName() {
  13. return "HighlightsPostProcess";
  14. }
  15. /**
  16. * Extracts highlights from the image
  17. * @see https://doc.babylonjs.com/features/featuresDeepDive/postProcesses/usePostProcesses
  18. * @param name The name of the effect.
  19. * @param options The required width/height ratio to downsize to before computing the render pass.
  20. * @param camera The camera to apply the render pass to.
  21. * @param samplingMode The sampling mode to be used when computing the pass. (default: 0)
  22. * @param engine The engine which the post process will be applied. (default: current engine)
  23. * @param reusable If the post process can be reused on the same frame. (default: false)
  24. * @param textureType Type of texture for the post process (default: Engine.TEXTURETYPE_UNSIGNED_INT)
  25. */
  26. constructor(name, options, camera, samplingMode, engine, reusable, textureType = 0) {
  27. super(name, "highlights", null, null, options, camera, samplingMode, engine, reusable, null, textureType);
  28. }
  29. }
  30. //# sourceMappingURL=highlightsPostProcess.js.map