I'm having trouble getting my vertex shader (1.20) to work. I'm rendering a simple white triangle, but when I load the vertex shader the triangle disappears.
void main()
{
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
I've also tried:
void main()
{
gl_Position = ftransform();
}
to no avail. I'm really confused because my fragment shader does work. For example,
void main()
{
gl_FragColor = vec4(.5, .6, .3, 1);
}
will turn my triangle green. I can't spot anything wrong (and the shaders compile without errors), so I'm wondering if anyone has any ideas.