ssao2Configuration.ts 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { Constants } from "../Engines/constants";
  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. Constants.PREPASS_DEPTHNORMAL_TEXTURE_TYPE
  22. ];
  23. /**
  24. * Builds a ssao2 configuration object
  25. * @param scene The scene
  26. */
  27. constructor() {
  28. }
  29. /**
  30. * Disposes the configuration
  31. */
  32. public dispose() {
  33. // pass
  34. }
  35. }