Ocean.d.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import {
  2. OrthographicCamera,
  3. Mesh,
  4. Scene,
  5. ShaderMaterial,
  6. Vector3,
  7. WebGLRenderer,
  8. WebGLRenderTarget,
  9. } from '../../../src/Three';
  10. export class Ocean {
  11. constructor( renderer: WebGLRenderer, camera?: OrthographicCamera, scene?: Scene, options?: object );
  12. changed: boolean;
  13. initial: boolean;
  14. oceanCamera: OrthographicCamera
  15. renderer: WebGLRenderer;
  16. scene: Scene;
  17. clearColor: number[];
  18. geometryOrigin: number[];
  19. sunDirectionX: number;
  20. sunDirectionY: number;
  21. sunDirectionZ: number;
  22. oceanColor: Vector3;
  23. skyColor: Vector3;
  24. exposure: number;
  25. geometryResolution: number;
  26. geometrySize: number;
  27. resolution: number;
  28. floatSize: number;
  29. windX: number;
  30. windY: number;
  31. size: number;
  32. choppiness: number;
  33. initialSpectrumFramebuffer: WebGLRenderTarget;
  34. spectrumFramebuffer: WebGLRenderTarget;
  35. pingPhaseFramebuffer: WebGLRenderTarget;
  36. pongPhaseFramebuffer: WebGLRenderTarget;
  37. pingTransformFramebuffer: WebGLRenderTarget;
  38. pongTransformFramebuffer: WebGLRenderTarget;
  39. displacementMapFramebuffer: WebGLRenderTarget;
  40. normalMapFramebuffer: WebGLRenderTarget;
  41. matrixNeedsUpdate: boolean;
  42. materialOceanHorizontal: ShaderMaterial;
  43. materialOceanVertical: ShaderMaterial;
  44. materialInitialSpectrum: ShaderMaterial;
  45. materialPhase: ShaderMaterial;
  46. materialSpectrum: ShaderMaterial;
  47. materialNormal: ShaderMaterial;
  48. materialOcean: ShaderMaterial;
  49. screenQuad: Mesh;
  50. generateSeedPhaseTexture(): void;
  51. generateMesh(): void;
  52. render(): void;
  53. renderInitialSpectrum(): void;
  54. renderWavePhase(): void;
  55. renderSpectrum(): void;
  56. renderSpectrumFFT(): void;
  57. renderNormalMap(): void;
  58. }