WebGL particles

 from Red Blob Games
01 Aug 2017

Inspired by Peter Beshai[1] and Vladimir Agafonkin[2], I wanted to play with some WebGL particles. I read learningwebgl’s page about rendering to textures[3] and also learned a lot from Vladimir’s blog post, Peter’s blog post, and Peter’s code. Here are 100,000 particles:

I was originally hoping to make some “wind” flows for procedural map generation. I don’t know what happened here, but it looked cool so I decided to leave it here. I’ll revisit wind later.

I’m using regl.js and Morgan McGuire’s glsl noise functions for this experiment. The code is here.

Email me , or tweet @redblobgames, or comment: