Example Source

These are raw source mirrors for the interactive examples. Use them when you want to read the example entry file directly.

Basic

Interactive dot grid with cursor tracking and animated custom uniforms.

View

LYGIA import

Using #include to pull LYGIA utilities into a shader.

View

Uniform presets

Cycling through preset uniform values to get multiple looks from one shader.

View

History tiles

Saving distinct frames into history, then composing them into a grid.

View

Cursor feedback

A shader that feeds back on itself through a 5x5 tiled history buffer.

View

Reading history

An illustration of how to read past frames using the historyZ helper.

View

Selfie

Capture shader output to PNG with the save utility.

View

Webcam trails

Webcam echo trails built from texture history.

View

Webcam channel trails

RGB webcam echoes blended from modified history frames.

View

Webcam grid

A webcam timeline arranged into a grid of delayed frames.

View

Single-channel textures

An R8 webcam pass chained into history to show single-channel textures in action.

View

Wide-gamut color

A Display P3 test image rendered through a Display P3 ShaderPad.

View

Fragmentum

A procedural animation ported from Shadertoy.

View

Face detection

Face landmarks, masks, and regions on webcam input.

View

Pose detection

Pose landmarks and segmentation overlays on webcam input.

View

Hand detection

Hand landmarks and centers on webcam input.

View

Segmenter

A multi-category segmentation mask on webcam input.

View

MediaPipe chaining

Two-pass webcam compositing with shared face detection.

View

Background blur

An advanced blur filter demonstrating a chained ShaderPad pipeline.

View

Camo

Face- or body-centered camouflage using a single history frame.

View

Elastics

Elastic glowing connections between fingertips and thumbs.

View

Finger pens

Interactive ink strokes controlled by your fingertips.

View

MIDI fingers

Hand tracking routed to MIDI CC output with a live visual overlay.

View

God rays

Volumetric glow from tracked hands and face landmarks.

View

Web component

Using <shader-pad> directly in HTML with one image texture and one inline shader.

View

React

Embedding a shader in React using the built-in <ShaderPad> component.

View