Particle systems

Version 6 of 6

GPU glow swarm.

WebGL · single pass · 2010s

This version

Particles with soft glowing falloff, spiralling outwards in a swirling field and dying, all evaluated in one shader pass.

How this version works

A single full-resolution fragment shader evaluates 120 procedural particles for every output pixel. Hashed indices set each particle's phase and starting angle, while its repeating lifetime drives an expanding spiral with sinusoidal offsets. Each particle contributes a soft inverse-square-like glow, weighted to vanish at the start and end of its life and coloured by cosine functions of index and time. Contributions are summed and compressed with an exponential tone mapping curve, without a trail buffer.

The trick in this version

These are not separately rasterised point sprites: every fragment loops over all 120 analytic particle centres. This avoids particle state and extra passes, but the work grows with both screen pixel count and particle count.

Historical context · GPU

  1. 2010s · WebGL and compute shaders

    Millions on the GPU

    Positions live in textures or buffers and a shader moves them all at once: curl noise, attractors and audio-reactive clouds of a million points.

  2. 2000 · Farbrausch

    fr-08: .the .product

    Hardware-accelerated additive sprites: smoke, glow and sparks become soft and luminous instead of single pixels.

Platform
WebGL · single pass
Era
GPU
Rendered on
GPU
Tags
additive glow · procedural
Sources
Millions on the GPU (2010s)fr-08: .the .product (2000)