Fragment

Fragment shaders, also called pixel shaders: a small program that runs once for every pixel and returns its color. Most of what you see on screen starts here.

30 shaders

A still from Soap Bubble
· Light & Materials

Soap Bubble

Thin-film interference, color from a film's thickness

A still from Lava Flow
· Noise & Texture

Lava Flow

Flow noise, a cooling crust, color from temperature

A still from Wind Chimes
· Sound & Rhythm

Wind Chimes

Modal synthesis: struck tubes ring with their own partials

A still from Menger Sponge
· Fractals

Menger Sponge

Folding space into a fractal, a box cut again and again

A still from Sunset
· Atmosphere

Sunset

Rayleigh and Mie scattering, a sky from the air it passes through

A still from Clockwork
· Shapes & Symmetry

Clockwork

Gears from 2D distance fields, teeth that mesh, ratios that loop

A still from Stained Glass
· Light & Materials

Stained Glass

Voronoi panes, lead lines, light colored by the glass it passes

A still from Black Hole
· 3D Scenes

Black Hole

Rays bent by gravity, an accretion disk, Doppler color

A still from Lightning
· Fractals

Lightning

Branching bolts by midpoint displacement, glow, thunder that arrives late

A still from Pulse Synth
· Sound & Rhythm

Pulse Synth

FM synthesis and envelopes, a picture drawn from its own waveform

A still from Rain on Glass
· Light & Materials

Rain on Glass

Refraction through drops on a window, a blurred world behind

A still from Aurora
· Atmosphere

Aurora

Thin noise curtains marched through, stars

A still from Neon Sign
· Shapes & Symmetry

Neon Sign

2D distance-field strokes, glow, flicker

A still from Wood & Marble
· Noise & Texture

Wood & Marble

Solid procedural textures, noise that tiles

A still from Mandelbulb
· Fractals

Mandelbulb

3D fractals, distance estimators, orbit-trap color

A still from Smoke Stack
· Atmosphere

Smoke Stack

Volumetric clouds: light marching, self-shadowing, scattering

A still from Kiln Floor Tiles
· Shapes & Symmetry

Kiln Floor Tiles

Hex grids, Truchet tiles, wallpaper symmetry

A still from Pottery Wheel
· Light & Materials

Pottery Wheel

Solids of revolution, twisting, a glaze material

A still from A Shader That Keeps the Beat
· Sound & Rhythm

A Shader That Keeps the Beat

A sequencer in the sound, the picture synced to it

A still from Glass Orb
· Light & Materials

Glass Orb

Refraction, reflection, Fresnel

A still from Endless Terrain
· 3D Scenes

Endless Terrain

Heightfield raymarching, sky, sun, distance fog

A still from Ember Tunnel
· 3D Scenes

Ember Tunnel

Domain repetition, fog, an endless fly-through

A still from Kiln Fire
· 3D Scenes

Kiln Fire

Volume raymarching through noise, emission

A still from Fractal Glow
· Fractals

Fractal Glow

Complex numbers, Julia sets, smooth iteration color

A still from Molten Metaballs
· 3D Scenes

Molten Metaballs

3D smooth blending, soft shadows, ambient occlusion

A still from Cracked Clay
· Noise & Texture

Cracked Clay

Voronoi noise, cell edges, bump lighting

A still from Kaleidoscope
· Shapes & Symmetry

Kaleidoscope

Polar coordinates, angular repetition, mirror folds

A still from Floating 3D Scene
· 3D Scenes

Floating 3D Scene

Raymarching, normals, basic lighting

A still from Morphing Shapes
· Shapes & Symmetry

Morphing Shapes

2D signed distance fields and smooth blending

A still from Flowing Color Field
· Noise & Texture

Flowing Color Field

Coordinates, time, noise, color palettes