Following the shader program setup tutorial at http://www.arcsynthesis.org/gltut/Basics/Tut01%20Making%20Shaders.html
I received the following error in my console window:
By this error, I assume that the program locates and reads the .vs and .fs files from the appropriate directory, so that can't be the problem.
My calls that creates each shader are as follows:
void InitializeProgram()
{
std::vector<GLuint> shaderList;
shaderList.push_back(CreateShader(GL_VERTEX_SHADER, "shader"));
shaderList.push_back(CreateShader(GL_FRAGMENT_SHADER, "shader"));
shaderOne = CreateProgram(shaderList);
std::for_each(shaderList.begin(), shaderList.end(), glDeleteShader);
}
shader.vs
void main()
{
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
shader.fs
void main()
{
gl_FragColor = vec4(1.0,0.0,0.0,0.0);
}
Also, I thought there might be a problem with having the file extension .vs instead of .vert, but neither work.