# The Fragment Toolkit Beyond UV **Track:** Advanced Shaders & GPU — Advanced Creative Coding — proposed (50) **Framework / surface:** GLSL **Level:** Medium **Prerequisites:** Fragment Shaders & UV Space **In one line:** smoothstep/mix/step, cosine palettes, 2D SDF shapes and boolean ops. ## Theory, aesthetics & inspiration A fragment shader assigns a color to every pixel in parallel, and the discipline begins with what replaces literal UV sampling: step thresholds, smoothstep's antialiased gradients, and mix's linear blends become a small algebra of light. Inigo Quilez's cosine palette—four vectors driving a periodic RGB function—turns a single scalar into infinite coherent color schemes without lookup tables. Signed-distance fields measure the nearest edge of analytic shapes, so circles, boxes, and segments combine through min and max into unions, intersections, and cuts. Patricio Gonzalez Vivo and Jen Lowe's The Book of Shaders codifies this grammar; the resulting images read crisp, resolution-independent, and mathematically clean.