Water.d.ts 558 B

12345678910111213141516171819202122232425262728293031
  1. import {
  2. BufferGeometry,
  3. Color,
  4. Geometry,
  5. Mesh,
  6. Side,
  7. Texture,
  8. Vector3
  9. } from '../../../src/Three';
  10. export interface WaterOptions {
  11. textureWidth?: number;
  12. textureHeight?: number;
  13. clipBias?: number;
  14. alpha?: number;
  15. time?: number;
  16. waterNormals?: Texture;
  17. sunDirection?: Vector3;
  18. sunColor?: Color | string | number;
  19. waterColor?: Color | string | number;
  20. eye?: Vector3;
  21. distortionScale?: number;
  22. side?: Side;
  23. fog?: boolean;
  24. }
  25. export class Water extends Mesh {
  26. constructor( geometry: Geometry | BufferGeometry, options: WaterOptions );
  27. }