Load either the vertex or fragment shader from a custom stream.
This function loads a single shader, either vertex or fragment,
identified by the second argument. The source code must be a valid shader
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 either the vertex or fragment shader from a custom stream.
This function loads a single shader, either vertex or fragment, identified by the second argument. The source code must be a valid shader 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.