Skip to content

Jareddvw/webgl-fluid

Repository files navigation

WebGL fluid simulation

This is a 2D fluid simulation written in TS using WebGL2. You can play around with it here.

  • Drag your mouse around to add external forces.
  • When visualizing dye: either right-click or double-click then drag to add dye.
  • press S to take a screenshot.

Running the app

Install pnpm with corepack or npm, then run

pnpm install
pnpm run dev

Gallery

velocity velocity velocity velocity velocity velocity

References

About

2D fluid simulation on the GPU using WebGL2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published