PDA

View Full Version : GLSL - shader compilation fails "unexpected $end at token ..."



henniman
01-26-2006, 09:31 AM
Hi all,

does anyone know why this shader:

----
uniform sampler2D texture;
void main()
{
vec4 c = texture2D(texture, gl_TexCoord[0].xy);
gl_FragColor = c;
}----

fails with this message (81.98):

(0) : error C0000: syntax error, unexpected $end at token "<null atom>" (0) : error C0501: type name expected at token "<null atom>"

what is this "null atom"?

best regards,
hendrik

henniman
01-26-2006, 09:32 AM
answering myself:

there is a newline missg after the last bracket ...