The vertex shader differs in its input, in that it receives its input straight from the vertex data. The other exception is that the fragment shader requires a vec4 color output variable, since the fragment shaders needs to generate a final output c…