OutlineEffect.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import {
  2. Camera,
  3. Scene,
  4. Vector2,
  5. Vector4,
  6. WebGLRenderer,
  7. WebGLRenderTarget,
  8. WebGLShadowMap
  9. } from '../../../src/Three';
  10. export interface OutlineEffectParameters {
  11. defaultThickness?: number;
  12. defaultColor?: number[];
  13. defaultAlpha?: number;
  14. defaultKeepAlive?: boolean;
  15. }
  16. export class OutlineEffect {
  17. constructor( renderer: WebGLRenderer, parameters: OutlineEffectParameters );
  18. enabled: boolean;
  19. autoClear: boolean;
  20. domElement: HTMLElement;
  21. shadowMap: WebGLShadowMap;
  22. clear( color?: boolean, depth?: boolean, stencil?: boolean ): void;
  23. getPixelRatio(): number;
  24. getSize( target: Vector2 ): Vector2;
  25. render( scene: Scene, camera: Camera ): void;
  26. renderOutline( scene: Scene, camera: Camera ): void;
  27. setRenderTarget( renderTarget: WebGLRenderTarget | null ): void;
  28. setPixelRatio( value: number ): void;
  29. setScissor( x: Vector4 | number, y?: number, width?: number, height?: number ): void;
  30. setScissorTest( enable: boolean ): void;
  31. setSize( width: number, height: number, updateStyle?: boolean ): void;
  32. setViewport( x: Vector4 | number, y?: number, width?: number, height?: number ): void;
  33. }