SSAOPass.d.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import {
  2. Camera,
  3. Color,
  4. DataTexture,
  5. Material,
  6. MeshNormalMaterial,
  7. Scene,
  8. ShaderMaterial,
  9. Vector3,
  10. WebGLRenderer,
  11. WebGLRenderTarget
  12. } from '../../../src/Three';
  13. import { Pass } from './Pass';
  14. export class SSAOPass extends Pass {
  15. constructor( scene: Scene, camera: Camera, width?: number, height?: number );
  16. scene: Scene;
  17. camera: Camera;
  18. width: number;
  19. height: boolean;
  20. clear: boolean;
  21. kernelRadius: boolean;
  22. kernelSize: boolean;
  23. kernel: Vector3[];
  24. noiseTexture: DataTexture;
  25. output: number;
  26. minDistance: number;
  27. maxDistance: number;
  28. beautyRenderTarget: WebGLRenderTarget;
  29. normalRenderTarget: WebGLRenderTarget;
  30. ssaoRenderTarget: WebGLRenderTarget;
  31. blurRenderTarget: WebGLRenderTarget;
  32. ssaoMaterial: ShaderMaterial;
  33. normalMaterial: MeshNormalMaterial;
  34. blurMaterial: ShaderMaterial;
  35. depthRenderMaterial: ShaderMaterial;
  36. copyMaterial: ShaderMaterial;
  37. fsQuad: object;
  38. originalClearColor: Color;
  39. static OUTPUT: {
  40. Default: number;
  41. SSAO: number;
  42. Blur: number;
  43. Beauty: number;
  44. Depth: number;
  45. Normal: number;
  46. };
  47. dipose(): void;
  48. generateSampleKernel(): Vector3[];
  49. generateRandomKernelRotations(): void;
  50. renderPass( renderer: WebGLRenderer, passMaterial: Material, renderTarget: WebGLRenderTarget, clearColor?: Color, clearAlpha?: number ): void;
  51. renderPass( renderer: WebGLRenderer, passMaterial: Material, renderTarget: WebGLRenderTarget, clearColor?: number, clearAlpha?: number ): void;
  52. renderOverride( renderer: WebGLRenderer, overrideMaterial: Material, renderTarget: WebGLRenderTarget, clearColor?: Color, clearAlpha?: number ): void;
  53. renderOverride( renderer: WebGLRenderer, overrideMaterial: Material, renderTarget: WebGLRenderTarget, clearColor?: number, clearAlpha?: number ): void;
  54. }