← All Projects

GPU Particle System

A 100k+ particle simulation running entirely on the GPU with WebGL2 transform feedback. Interactive wind, gravity, and collision forces.

WebGL2ParticlesGPU

Overview

A GPU-accelerated particle system that simulates over 100,000 particles at 60fps using WebGL2 transform feedback. Particles respond to mouse interaction, wind fields, and gravity — all computed on the GPU without CPU bottlenecks.

Architecture

The system uses a double-buffered transform feedback pipeline. Particle positions and velocities are stored in floating-point textures, updated each frame by a vertex shader, and rendered as instanced point sprites.

Interaction

Mouse movement creates wind forces that push particles in real time. Click to spawn bursts of new particles. The velocity field is smoothed over time, creating organic, smoke-like motion.