Hi,
I'm new to GLSL, and I'm trying to get started by getting some of the clockwork coders tutorials to compile and run (the ones here: http://www.clockworkcoders.com/oglsl/tutorials.html ). Specifically, I've jumped in at Tutorial 10 - Simple Toon Shading. The code compiles and runs, but then the call to
glGetObjectParameterivARB(ProgramObject, GL_OBJECT_COMPILE_STATUS_ARB, &compiled);
when trying to compile the vertex shader fails to set the compiled flag, and the compiler log reports the following errors:
Quote:***COMPILER ERROR (Vertex Shader):
0(12) : error C0000: syntax error, unexpected $undefined at token "<undefined>"
0(12) : error C0501: type name expected at token "<undefined>"
This is the vertex shader in question:
varying vec3 vNormal;
varying vec3 vVertex;
void main(void)
{
vVertex = gl_Vertex.xyz;
vNormal = gl_Normal;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
I don't see how there can be anything wrong with the vertex shader itself, so could it be something wrong with my compiler or hardware setup? I'm using Visual Studio 2008, running Windows Vista on a Dell XPS M1530, with an NVidia GeForce 8600M GT graphics card - the operating system, BIOS and graphics card drivers are all completely up-to-date.
What could be going wrong here?
"We two, the World and I, are stubborn fellows at loggerheads, and naturally whichever has the thinner skull will get it broken" - Richard Wagner