To get started, we need to know how to compile our GLSL shaders. The GLSL compiler is built right into the OpenGL library, and shaders can only be compiled within the context of a running OpenGL program.
Compiling a shader involves creating a shader object, providing the source code (as a string ...