learn GLSL from zero
ToolsCreate with shadersShader MakerFree online shader builderToolkitShader works ready for your siteSketcher LabPaint your landing’s hero with shaders3D StudioThe Three.js editor in your browser
GamesPlay with shadersOnomatoShaderType a word, blow it upThe WatcherAn eye that follows youAetherLiquid glass with an eye insideBloomcoreA word grows a garden of lightPyrokineThrow fire at the wallVoltaicThe pyramid throws lightningSurfSurf a shader ocean

Strange attractors on the GPU

A strange attractor is a chaotic path that never repeats and never escapes. You release one point into the Aizawa equations, integrate it with Euler, then let the GPU move thousands with transform feedback and additive light.

  1. The pointOne point. Three rules. An impossible form.
  2. The equationsThe three derivatives that guide it: the ODE.
  3. EulerIntegrate: position += velocity · dt.
  4. The swarmFrom one point to thousands, under the same rules.
  5. Transform feedbackThe GPU computes and stores every position itself.
  6. Ping-pongTwo buffers alternating every frame.
  7. 3D projectionRotate and flatten space onto the screen.
  8. Color by speedFast becomes white; slow becomes blue.
  9. Additive blendingPoints add light. Density becomes brightness.
  10. In motionEverything together, turning in the void.

Next section: Ray marching in GLSL →

close