Water2.d.ts 525 B

1234567891011121314151617181920212223242526272829
  1. import {
  2. BufferGeometry,
  3. Color,
  4. Geometry,
  5. Mesh,
  6. Texture,
  7. Vector2
  8. } from '../../../src/Three';
  9. export interface WaterOptions {
  10. color?: Color | string | number;
  11. textureWidth?: number;
  12. textureHeight?: number;
  13. clipBias?: number;
  14. flowDirection?: Vector2;
  15. flowSpeed?: number;
  16. reflectivity?: number;
  17. scale?: number;
  18. shader?: object;
  19. flowMap?: Texture;
  20. normalMap0?: Texture;
  21. normalMap1?: Texture;
  22. }
  23. export class Water extends Mesh {
  24. constructor( geometry: Geometry | BufferGeometry, options: WaterOptions );
  25. }