GLSL Fundamentals

Fragment shaders run once per pixel, every frame. Each invocation receives the pixel's position and outputs a color. Everything on screen — shapes, animations, textures, fractals — is just math that maps a coordinate to a color. This guide walks through that math interactively. Edit any example live and see the result immediately.