Load both the vertex and fragment shaders from files.
This function loads both the vertex and the fragment shaders. If one of
them fails to load, the shader is left empty (the valid shader is
unloaded). The sources must be text files containing valid shaders in
GLSL language. GLSL is a C-like language dedicated to OpenGL shaders;
you'll probably need to read a good documentation for it before writing
your own shaders.
Load both the vertex and fragment shaders from files.
This function loads both the vertex and the fragment shaders. If one of them fails to load, the shader is left empty (the valid shader is unloaded). The sources must be text files containing valid shaders in GLSL language. GLSL is a C-like language dedicated to OpenGL shaders; you'll probably need to read a good documentation for it before writing your own shaders.