Unity · 2022.3 · Shader Graph

Free Unity 2022.3 Project: SPH Fluid Simulation (Sebastian Lague)

Original title: Fluid-Sim

Free Unity 2022.3 Project: SPH Fluid Simulation (Sebastian Lague)
Preview from the original source by Sebastian Lague

Overview

Fluid-Sim is Sebastian Lague's source project for the 'Coding Adventure: Simulating Fluids' video, built in Unity 2022.3 on the Built-in Render Pipeline. It implements a particle-based SPH fluid simulation in both 2D and 3D, with the simulation running on compute shaders and the particles drawn through instanced rendering.

The full project is available on GitHub as a free direct download under the MIT license. A good study piece for anyone learning compute shaders, GPU simulation or real-time fluid effects in Unity, and a rare example of a complete SPH solver that is small enough to read in one sitting.

What You Can Learn

  • Particle-based SPH fluid simulation in 2D and 3D
  • Running a simulation on compute shaders
  • Instanced rendering of particles
Visit Original Project

Access: Free direct download