O'Reilly logo

openFrameworks Essentials by Denis Perevalov, Igor Tatarnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the video effect with a shader

Now, we will demonstrate processing a video using shaders. We do it by implementing the well-known kaleidoscope effect. This effect is quite generic, and its implementation exhibits many things that you would need to create your own effects with shaders.

Note

Shaders are tiny programs executed on GPU (video card). A video effect implemented with shaders works faster than its CPU-based analogue. This is the reason for shaders for being the most popular technology for creating real-time video effects.

Shaders are written in the GLSL language. It is a specialized version of the C language, containing a number of built-in functions and variables.

There are several types of shaders, including vertex, fragment, and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required