VideoFlowcodeGitHubTry itCoreRenderersReact Video EditorPlaygroundExamplesDocscodeGitHubTry it
← Back to Blog

Cinematic Code: A Guide to VideoFlow’s 42 GLSL Effects

August 12, 2026 · By VideoFlowLearn how to use VideoFlow’s 42 built-in GLSL effects to create professional, data-driven videos with code. Master effect stacking and dot-path animation.Cinematic Code: A Guide to VideoFlow’s 42 GLSL Effects

Cinematic Code: A Guide to VideoFlow’s 42 GLSL Effects

Video editing has traditionally been a game of sliders and keyframes in a heavy GUI. But as the demand for personalized, data-driven content explodes, developers are looking for ways to bring that same cinematic polish to their automated pipelines. Enter VideoFlow and its suite of 42 built-in GLSL effects.

When you're building programmatic video, you shouldn't have to choose between automation and aesthetics. VideoFlow allows you to stack professional-grade GPU shaders directly onto your layers using a simple TypeScript API.

The Power of the Stack

In VideoFlow, effects are not just filters; they are a composable stack. Every visual layer—be it text, image, or video—exposes an effects property. This is an array of effect objects that are applied sequentially by the renderer.

const layer = $.addImage(
  {
    fit: 'cover',
    effects: [
      { effect: 'vignette', params: { intensity: 0.5, radius: 0.8 } },
      { effect: 'chromaticAberration', params: { amount: 0.005 } },
      { effect: 'bloom', params: { threshold: 0.6, intensity: 1.0 } },
    ],
  },
  { source: 'https://videoflow.dev/samples/hero-bg.jpg' },
);

Because these effects run in order, the output of the vignette pass feeds into the chromaticAberration pass, which then feeds into the bloom. This allows for incredibly complex visual textures that would be difficult to achieve with simple CSS filters or standard canvas operations.

A prism splitting light into chromatic layers

Animating the Impossible

The real magic happens when you start animating these parameters. VideoFlow uses a "dot-path" syntax to target specific effect properties within the stack. This means you can keyframe a pixelate effect to reveal a title, or pulse a glow in sync with an audio track.

const title = $.addText({
  text: 'GLITCHED',
  fontSize: 10,
  color: '#FF5A1F',
  effects: [
    { effect: 'vhsDistortion', params: { trackingAmount: 0.2 } }
  ]
});

// Animate the VHS distortion over 2 seconds
title.animate(
  { 'effects.vhsDistortion.trackingAmount': 0.2 },
  { 'effects.vhsDistortion.trackingAmount': 0.8 },
  { duration: '2s', easing: 'easeInOut' }
);

This level of control is what separates VideoFlow from other open-source video toolkits. By exposing the raw power of GLSL shaders through a developer-friendly builder API, you can create motion graphics that feel "hand-crafted" while being entirely generated by code.

The 42-Effect Catalogue

VideoFlow ships with a massive library of effects out of the box, categorized to help you find the right vibe for your project:

  • Blur & Glow: From standard gaussianBlur to cinematic volumetricLight and bloom.
  • Color & Grade: Professional tools like colorGrade, duotone, and vignette.
  • Distortion & Glass: Creative shaders like frostedGlass, liquidRipple, and shockwave.
  • Glitch & Retro: Authentic vhsDistortion, crtScanlines, and digitalBlocks for that lo-fi aesthetic.
  • Reveal & Mask: Dynamic transitions like lightSweep, noiseDissolve, and scanReveal.

Stylized VHS glitch effect

How VideoFlow Handles Shaders

Unlike some alternatives that rely on heavy external dependencies, VideoFlow's effects are built directly into its official renderers. Whether you are exporting an MP4 in the browser with @videoflow/renderer-browser or running a batch job on a server with @videoflow/renderer-server, the output is byte-for-byte identical.

The effects are written in GLSL (OpenGL Shading Language), which means they execute on the GPU. This is why VideoFlow can maintain a frame-accurate 60fps preview in the Playground, even when stacking multiple heavy effects like bloom and motionBlur.

Get Started with Cinematic Code

Ready to stop chaining FFmpeg commands and start composing? VideoFlow is fully open-source (Apache-2.0) and ready for your next project.

Whether you're building a SaaS dashboard with personalized recaps or an AI agent that generates social media content, VideoFlow’s effects engine gives you the cinematic edge without the manual effort.

VideoFlow

Open-source toolkit for composing videos from code.

Product

CoreRenderersReact Video EditorPlayground

Learn

DocsAPI referenceExamplesvs. Remotionvs. FFmpeg

Project

GitHubLicenseContactTermsPrivacy

From the blog

All posts →The 50-Line YouTube Shorts Factory: Programmatic Video with VideoFlowMastering Motion: How to Animate Effect Parameters in VideoFlowCinematic Code: How to Stack GLSL Effects in VideoFlowCinematic Code: A Guide to VideoFlow’s 42 GLSL EffectsFrom FFmpeg Shell Scripts to VideoFlow: A Migration GuideGit-Driven Video: Building a CI/CD Pipeline for Your MP4 AssetsJSON as the New MP4: Why Your Video Pipeline Should Be DiffableLLM-Driven Video: Giving Your AI Agent a VideoFlow Tool
© 2026 VideoFlow. Apache-2.0 core.