prePassEffectConfiguration.d.ts 815 B

12345678910111213141516171819202122232425262728293031323334
  1. import type { PostProcess } from "../PostProcesses/postProcess";
  2. /**
  3. * Interface for defining prepass effects in the prepass post-process pipeline
  4. */
  5. export interface PrePassEffectConfiguration {
  6. /**
  7. * Name of the effect
  8. */
  9. name: string;
  10. /**
  11. * Post process to attach for this effect
  12. */
  13. postProcess?: PostProcess;
  14. /**
  15. * Textures required in the MRT
  16. */
  17. texturesRequired: number[];
  18. /**
  19. * Is the effect enabled
  20. */
  21. enabled: boolean;
  22. /**
  23. * Does the output of this prepass need to go through imageprocessing
  24. */
  25. needsImageProcessing?: boolean;
  26. /**
  27. * Disposes the effect configuration
  28. */
  29. dispose?: () => void;
  30. /**
  31. * Creates the associated post process
  32. */
  33. createPostProcess?: () => PostProcess;
  34. }