webgl-fft-ocean
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

webgl-fft-ocean

Webgl Ocean based on Tessendorf paper. Implementation of Phillips spectrum and its inverse FFT.

The grid used is a projected grid from screenspace to worldspace. The static, dynamic Phillips spectrum and the inverse FFT of it is displayed on the left panel.

To run the program:

  • pnpm i
  • pnpm run dev

Commands:

  • W: toggle wireframe
  • Left, right, up, down arrow: displacement given a direction
  • s,x: pitch,
  • a,z : up, down

Small program written in typescript. It displays a wave constructed by the inverse FFT of the Phillips spectrum.

Further work:


Video

Readme

Keywords

none

Package Sidebar

Install

npm i webgl-fft-ocean

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

6.5 MB

Total Files

55

Last publish

Collaborators

  • mateh