I managed to get my vertex shader program to work in a few easy steps. The actual vertex shaders are stored in their own files with a .vs extension (the extension doesn't particularly matter, yet the program understands how to read them in that way). The shader files themselves are actually their own programs. They are attached to objects in the main program and the command glUseProgram(Obj) actually loads the shader and executes it.

0 comments: