OutlinePass.d.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import {
  2. Vector2,
  3. Scene,
  4. Camera,
  5. Object3D,
  6. Color,
  7. Matrix4,
  8. MeshBasicMaterial,
  9. MeshDepthMaterial,
  10. ShaderMaterial,
  11. WebGLRenderTarget
  12. } from '../../../src/Three';
  13. import { Pass } from './Pass';
  14. export class OutlinePass extends Pass {
  15. constructor( resolution: Vector2, scene: Scene, camera: Camera, selectedObjects?: Object3D[] );
  16. renderScene: Scene;
  17. renderCamera: Camera;
  18. selectedObjects: Object3D[];
  19. visibleEdgeColor: Color;
  20. hiddenEdgeColor: Color;
  21. edgeGlow: number;
  22. usePatternTexture: boolean;
  23. edgeThickness: number;
  24. edgeStrength: number;
  25. downSampleRatio: number;
  26. pulsePeriod: number;
  27. resolution: Vector2;
  28. maskBufferMaterial: MeshBasicMaterial;
  29. renderTargetMaskBuffer: WebGLRenderTarget;
  30. depthMaterial: MeshDepthMaterial;
  31. prepareMaskMaterial: ShaderMaterial;
  32. renderTargetDepthBuffer: WebGLRenderTarget;
  33. renderTargetMaskDownSampleBuffer: WebGLRenderTarget;
  34. renderTargetBlurBuffer1: WebGLRenderTarget;
  35. renderTargetBlurBuffer2: WebGLRenderTarget;
  36. edgeDetectionMaterial: ShaderMaterial;
  37. renderTargetEdgeBuffer1: WebGLRenderTarget;
  38. renderTargetEdgeBuffer2: WebGLRenderTarget;
  39. separableBlurMaterial1: ShaderMaterial;
  40. separableBlurMaterial2: ShaderMaterial;
  41. overlayMaterial: ShaderMaterial;
  42. copyUniforms: object;
  43. materialCopy: ShaderMaterial;
  44. oldClearColor: Color;
  45. oldClearAlpha: number;
  46. fsQuad: object;
  47. tempPulseColor1: Color;
  48. tempPulseColor2: Color;
  49. textureMatrix: Matrix4;
  50. dispose(): void;
  51. changeVisibilityOfSelectedObjects( bVisible: boolean ): void;
  52. changeVisibilityOfNonSelectedObjects( bVisible: boolean ): void;
  53. updateTextureMatrix(): void;
  54. getPrepareMaskMaterial(): ShaderMaterial;
  55. getEdgeDetectionMaterial(): ShaderMaterial;
  56. getSeperableBlurMaterial(): ShaderMaterial;
  57. getOverlayMaterial(): ShaderMaterial;
  58. }