Chapter 8. Using Shaders
Shader is a small program that allows you to unleash the computation power of GPUs. This power exceeds the computation capabilities of the most powerful CPUs. So using shaders is crucial for creating competitive and astonishing projects. This chapter will cover the basics on using shaders in openFrameworks for creating 2D video effects and 3D object deformations. We will cover the following topics:
Structure of a shader's code
An example of a simple fragment shader
Creating video effects with fragment shaders
Deforming objects with a vertex shader
Using a geometry shader