mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
31 lines
558 B
TypeScript
31 lines
558 B
TypeScript
import {
|
|
BufferGeometry,
|
|
Color,
|
|
Geometry,
|
|
Mesh,
|
|
Side,
|
|
Texture,
|
|
Vector3
|
|
} from '../../../src/Three';
|
|
|
|
export interface WaterOptions {
|
|
textureWidth?: number;
|
|
textureHeight?: number;
|
|
clipBias?: number;
|
|
alpha?: number;
|
|
time?: number;
|
|
waterNormals?: Texture;
|
|
sunDirection?: Vector3;
|
|
sunColor?: Color | string | number;
|
|
waterColor?: Color | string | number;
|
|
eye?: Vector3;
|
|
distortionScale?: number;
|
|
side?: Side;
|
|
fog?: boolean;
|
|
}
|
|
|
|
export class Water extends Mesh {
|
|
|
|
constructor( geometry: Geometry | BufferGeometry, options: WaterOptions );
|
|
|
|
}
|