motionBlurConfiguration.ts 878 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. * motion blur
  7. */
  8. export class MotionBlurConfiguration implements PrePassEffectConfiguration {
  9. /**
  10. * Is motion blur enabled
  11. */
  12. public enabled = false;
  13. /**
  14. * Name of the configuration
  15. */
  16. public name = "motionBlur";
  17. /**
  18. * Textures that should be present in the MRT for this effect to work
  19. */
  20. public readonly texturesRequired: number[] = [
  21. Constants.PREPASS_VELOCITY_TEXTURE_TYPE
  22. ];
  23. /**
  24. * Builds a motion blur configuration object
  25. * @param scene The scene
  26. */
  27. constructor() {
  28. }
  29. public dispose() {
  30. }
  31. }