Shader Playground Classroom
The Classroom

Five
Chapters

A hands-on path from the first line of shader code to the math of raymarching a 3D scene, and then out into real projects. Each chapter is a single page of prose and interactive diagrams. They build on one another — read them in order for the clearest arc, or jump to the one you already have the pieces for.

  1. 01

    The Pixel

    A shader that answers one question at every pixel — what color lives here? — and from those answers, a shape appears. Output color, pixel position, distance fields, the threshold that makes a circle, and the mix that paints it.

    Available
  2. 02

    Time and Repetition

    A shader that answers a different question every frame, and the same question a thousand times across a grid. u_time, sin, symmetry via abs, tiling via fract.

    Available
  3. 03

    Randomness and Noise

    Hash functions and noise. Why a grid stops looking like a grid once every cell can pick its own number. Value noise, gradient noise, FBM, and domain warping.

    Available
  4. 04

    The Third Dimension

    A shader stops answering "what color?" and starts answering "how far?" — the shift that turns a flat canvas into a 3D scene. Sphere-tracing, signed distance fields, normals, diffuse light, and smooth blending.

    Available
Get Going
§

Workflow

How to actually do the work. Install the project, run the server, edit a shader, prompt an LLM, commit to your fork. A short reference for the loop most students repeat at the start of every class.

Available
§

Crit

For the critique room. A framework for looking at vibecoded work together — three systems, five strata, three lenses, and the discipline of the opening statement. Meant to be read once and returned to, not studied in sequence.

Available

Back to the Playground