BokehPass.d.ts 654 B

12345678910111213141516171819202122232425262728293031323334
  1. import {
  2. Scene,
  3. Camera,
  4. ShaderMaterial,
  5. WebGLRenderTarget,
  6. MeshDepthMaterial,
  7. Color
  8. } from '../../../src/Three';
  9. import { Pass } from './Pass';
  10. export interface BokehPassParamters {
  11. focus?: number;
  12. aspect?: number;
  13. aperture?: number;
  14. maxblur?: number;
  15. width?: number;
  16. height?: number;
  17. }
  18. export class BokehPass extends Pass {
  19. constructor( scene: Scene, camera: Camera, params: BokehPassParamters );
  20. scene: Scene;
  21. camera: Camera;
  22. renderTargetColor: WebGLRenderTarget;
  23. renderTargetDepth: WebGLRenderTarget;
  24. materialDepth: MeshDepthMaterial;
  25. materialBokeh: ShaderMaterial;
  26. uniforms: object;
  27. fsQuad: object;
  28. oldClearColor: Color;
  29. }