Error:
ERROR: 0:1: 'basicVertex120' : syntax error parse error
Code:
#version 120
attribute vec3 position;
attribute vec2 texCoord;
varying vec2 texCoord0;
uniform mat4 transform;
void main()
{
gl_Position = transform * vec4(position, 1.0);
texCoord0 = texCoord;
}
I have been following the tutorial from here: http://www.youtube.com/watch?v=8n1GV99FJ2Y&list=PLEETnX-uPtBXP_B2yupUKlflXBznWIlL5&index=11
All code from his tutorial are here: https://github.com/BennyQBD/3DGameEngine
I am not following it exactly, but as far as shader class and all go it is exactly the same. If you need any other code posted... let me know.
I am still very new to OpenGL 2.0+ and GLSL and trying to figure out how to know which line has the error. Is there something for vertex shaders like GL11.glGetError();?
Are there any tools I can use or documetation I can browse over to try and solve the issue?
I would really like to learn to solve these issues myself. How can I do that?