ssao2Configuration.ts 937 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { PrePassRenderer } from "./prePassRenderer";
  2. import { PrePassEffectConfiguration } from "./prePassEffectConfiguration";
  3. import { _DevTools } from '../Misc/devTools';
  4. /**
  5. * Contains all parameters needed for the prepass to perform
  6. * screen space subsurface scattering
  7. */
  8. export class SSAO2Configuration implements PrePassEffectConfiguration {
  9. /**
  10. * Is subsurface enabled
  11. */
  12. public enabled = false;
  13. /**
  14. * Name of the configuration
  15. */
  16. public name = "ssao2";
  17. /**
  18. * Textures that should be present in the MRT for this effect to work
  19. */
  20. public readonly texturesRequired: number[] = [
  21. PrePassRenderer.DEPTHNORMAL_TEXTURE_TYPE,
  22. PrePassRenderer.VELOCITY_TEXTURE_TYPE,
  23. ];
  24. /**
  25. * Builds a ssao2 configuration object
  26. * @param scene The scene
  27. */
  28. constructor() {
  29. }
  30. public dispose() {
  31. }
  32. }