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.
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 ...