examples/gl/multiTextureShaderExample/README.md
This example demonstrates how to use multiple textures in a shader. To merge the textures the shader calls the openGL function mix that linearly interpolates between two values. One texture is thereby used as a color mask, the remaining three textures are shown based on the assigned color channel and the color value of the mask.
You will learn how to..
Pay attention to..
setup function)When launching this app, you should see five textures. In the top row each texture represents a color channel and is labeled accordingly (RED, GREEN and BLUE). The first one is showing the webcam stream, the middle one an abstract still of colorful tiles and the right texture is showing a video of moving fingers. Below you see the image used as an RGB mask that determines how the three top images are mixed together. The result is displayed at the bottom.
Instructions for use:
This Example uses the following classes: