A shader program is made of two sub-functions: a vertex and a fragment shader.
Both the vertex and fragment shader are written using OpenGL Shading Language (GLSL) and require a function called main in order to work:
void main() {
}Let's start easy—replicate the above main function below: