EffectComposer.d.ts 814 B

12345678910111213141516171819202122232425262728293031
  1. import {
  2. Clock,
  3. WebGLRenderer,
  4. WebGLRenderTarget,
  5. } from '../../../src/Three';
  6. import { Pass } from './Pass';
  7. import { ShaderPass } from './ShaderPass';
  8. export class EffectComposer {
  9. constructor( renderer: WebGLRenderer, renderTarget?: WebGLRenderTarget );
  10. renderer: WebGLRenderer;
  11. renderTarget1: WebGLRenderTarget;
  12. renderTarget2: WebGLRenderTarget;
  13. writeBuffer: WebGLRenderTarget;
  14. readBuffer: WebGLRenderTarget;
  15. passes: Pass[];
  16. copyPass: ShaderPass;
  17. clock: Clock;
  18. swapBuffers(): void;
  19. addPass( pass: Pass ): void;
  20. insertPass( pass: Pass, index: number ): void;
  21. isLastEnabledPass( passIndex: number ): boolean;
  22. render( deltaTime?: number ): void;
  23. reset( renderTarget?: WebGLRenderTarget ): void;
  24. setSize( width: number, height: number ): void;
  25. setPixelRatio( pixelRatio: number ): void;
  26. }