SAOPass.d.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import {
  2. Scene,
  3. Camera,
  4. Material,
  5. MeshDepthMaterial,
  6. MeshNormalMaterial,
  7. ShaderMaterial,
  8. Color,
  9. Vector2,
  10. WebGLRenderer,
  11. WebGLRenderTarget
  12. } from '../../../src/Three';
  13. import { Pass } from './Pass';
  14. interface SAOPassParams {
  15. output: SAOPass.OUTPUT;
  16. saoBias: number;
  17. saoIntensity: number;
  18. saoScale: number;
  19. saoKernelRadius: number;
  20. saoMinResolution: number;
  21. saoBlur: number;
  22. saoBlurRadius: number;
  23. saoBlurStdDev: number;
  24. saoBlurDepthCutoff: number;
  25. }
  26. export namespace SAOPass {
  27. enum OUTPUT {
  28. Default,
  29. Beauty,
  30. SAO,
  31. Depth,
  32. Normal
  33. }
  34. }
  35. export class SAOPass extends Pass {
  36. constructor( scene: Scene, camera: Camera, depthTexture?: boolean, useNormals?: boolean, resolution?: Vector2 );
  37. scene: Scene;
  38. camera: Camera;
  39. supportsDepthTextureExtension: boolean;
  40. supportsNormalTexture: boolean;
  41. originalClearColor: Color;
  42. oldClearColor: Color;
  43. oldClearAlpha: number;
  44. resolution: Vector2;
  45. saoRenderTarget: WebGLRenderTarget;
  46. blurIntermediateRenderTarget: WebGLRenderTarget;
  47. beautyRenderTarget: WebGLRenderTarget;
  48. normalRenderTarget: WebGLRenderTarget;
  49. depthRenderTarget: WebGLRenderTarget;
  50. depthMaterial: MeshDepthMaterial;
  51. normalMaterial: MeshNormalMaterial;
  52. saoMaterial: ShaderMaterial;
  53. vBlurMaterial: ShaderMaterial;
  54. hBlurMaterial: ShaderMaterial;
  55. materialCopy: ShaderMaterial;
  56. depthCopy: ShaderMaterial;
  57. fsQuad: object;
  58. params: SAOPassParams;
  59. renderPass( renderer: WebGLRenderer, passMaterial: Material, renderTarget: WebGLRenderTarget, clearColor?: Color, clearAlpha?: number ): void;
  60. renderPass( renderer: WebGLRenderer, passMaterial: Material, renderTarget: WebGLRenderTarget, clearColor?: number, clearAlpha?: number ): void;
  61. renderOverride( renderer: WebGLRenderer, overrideMaterial: Material, renderTarget: WebGLRenderTarget, clearColor?: Color, clearAlpha?: number ): void;
  62. renderOverride( renderer: WebGLRenderer, overrideMaterial: Material, renderTarget: WebGLRenderTarget, clearColor?: number, clearAlpha?: number ): void;
  63. }