screenSpaceReflectionsConfiguration.ts 849 B

12345678910111213141516171819202122232425262728
  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 reflections
  7. */
  8. export class ScreenSpaceReflectionsConfiguration implements PrePassEffectConfiguration {
  9. /**
  10. * Is ssr enabled
  11. */
  12. public enabled = false;
  13. /**
  14. * Name of the configuration
  15. */
  16. public name = "screenSpaceReflections";
  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. Constants.PREPASS_REFLECTIVITY_TEXTURE_TYPE,
  23. Constants.PREPASS_POSITION_TEXTURE_TYPE,
  24. ];
  25. }