Original Post
Hello, I get an error while compiling my vertex shader. Here is the code for my shader:
When I run my application, it outputs the InfoLog to a file, here it is:
The same error occurs even if I comment out the entire shader code. Does anyone know where the problem is?
P.S. The fragment shader works as it should, here is the code:
/*
MaddEngine.vert
GLSL vertex shader used by Madd Engine
*/
void main()
{
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;
}
When I run my application, it outputs the InfoLog to a file, here it is:
Vertex info
-----------
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
The same error occurs even if I comment out the entire shader code. Does anyone know where the problem is?
P.S. The fragment shader works as it should, here is the code:
/*
MaddEngine.frag
GLSL fragment shader used by Madd Engine
*/
uniform sampler2D tex;
void main()
{
vec4 texel = texture2D(tex, gl_TexCoord[0].st);
gl_FragColor = gl_Color * texel;
}