Shader background
A moving full-frame background drawn by a shader. Its speed, tint and glow are controls in Properties and fields in the operator's form.
Try it
- Download wave-bands.glsl.
- Draw a Rectangle the size of the composition.
- In Properties, set Fill to Shader and load the file.
How it works
The shader marks three constants with #pragma ograf, which Studio turns into controls and data
fields:
#pragma ograf speed slider min(0) max(4) step(0.1)
const float speed = 1.0;
#pragma ograf tint color
const vec3 tint = vec3(0.14, 0.32, 0.76);
#pragma ograf glow toggle
const bool glow = true;
The rest is an ordinary Shadertoy-style mainImage function that uses iTime and iResolution.
Because Studio drives iTime from composition time, the background seeks to the same frame every
time, which frame-based renderers depend on.
Make it yours
- Animate speed or tint on the timeline with + Property → Fill shader.
- Put the same shader on a text layer's Outline for a moving border.
- The shader guide explains every pragma type and what's supported.