All 100 GLSL lessons

Ten sections of ten lessons each. You start with a single color and finish with a solar system; every lesson runs live on your GPU, in your browser.

The ten sections

  1. GLSL for beginnersColor, coordinates and time, from the first pixel to a tunnel of light.
  2. Shader patternsStripes, grids, polar coordinates, spirals, mirrors and Chladni plates.
  3. Forces in a shaderTime applied to coordinates: gravity, wind, vortex, turbulence, ripples.
  4. Noise in GLSLFrom raw randomness to FBM, terrain and a noise sphere.
  5. Domain warpingOne warp, many skins: giraffe, camo, wood, marble, liquid metal.
  6. Shader animationBreathing, phase, easing, morphs, flow fields and the seamless loop.
  7. Strange attractors on the GPUThe Aizawa attractor: an ODE, Euler, and 130,000 particles on the GPU.
  8. Ray marching in GLSL3D with distances: rays, SDFs, normals, light, shadows and materials.
  9. Fractals in GLSLz = z² + c: the complex plane, escape coloring, Julia sets and deep zoom.
  10. The Solar System in GLSLFrom the Sun to Neptune: exact spheres, light, clouds, rings, air and Kepler.