For this recipe, we'll assume that you've already compiled two shader objects whose handles are stored in the vertShader and fragShader variables.
For this and a few other recipes in this chapter, we'll use the following source code for the fragment shader:
#version 460 in vec3 Color; out vec4 FragColor; void main() { FragColor = vec4(Color, 1.0); }
For the vertex shader, we'll use the source code from the previous recipe, Compiling a shader.