Original Post
Do I have to write the vertex and pixel shaders on different source code? Do I write them in a .cpp file and call the compile() function from the shaderClass? I have the book "More OGL Game Programming", but it's confusing me.