← All projects

Eulerian fluid simulation with WebGPU

Grid-based fluid simulation and parallel computation in the browser.

WebGPUFluid simulationComputer graphics

Overview

This project was my first attempt at writing code for the GPU. I implement the classic Stable Fluids algorithm based off Stam’s paper.

I utilized TypeGPU for this project, an early-stage framework for bringing a useful type system and graphics toolset to WebGPU programming. I highly recommend taking a look at their documents and examples, they have a great community!

View the project on GitHub ↗