TypologySienna Chen
MotionLightweight

Time-driven shader animation

A pattern that moves because time is a number.

The image is a formula of time. Pass in the clock and the pattern moves by itself, with no state and nothing else running. Waves, pulsing rings, moiré, most Shadertoy pieces. The cheapest motion there is.

Breaks when
float precision drifts after minutes of runtime
Also called
uTime, u_time, animated shader, shader loop

Prompts

Moiré that breathes
A full-screen fragment shader with two stripe fields (frequency 70) whose directions rotate at 0.12 and −0.09 rad/s; the product of their smoothsteps forms the moiré. Ink on paper with a soft vignette. Only one uniform, uTime, updated per frame; wrap it at 3600 s to avoid precision drift. Reduced motion: freeze at t = 12.
Idle loop for a hero, seamless
A shader background whose motion is periodic with period exactly 8 s (all time terms use sin(2π t/8 × k) with integer k) so it can be captured to a perfect 8 s loop video, plus the FFmpeg command to record 240 frames from a headless browser and encode a loop.
Time with structure
Drive a shader with structured time: an envelope function (attack 0.2 s, hold, release 0.8 s) triggered every 2.4 s from JS via a uniform uTrigger, so the pattern pulses on a beat instead of drifting. Show the envelope math in the shader and how to sync it to a Tone.js Transport.

Related

Resources · 2

  • SeascapeFBM water raymarched in a single fragment shader.TDMsite · code · demoAug 25, 2026
  • The Book of ShadersChapters 9-13 for noise and fbm.patriciogvsite · code · demoAug 12, 2026