OpenGL Shader Compilation Issue — Unexpected EOF
问题 So I decided to try writing a simple OpenGL app using Java, just to see how it compared to my other efforts, and I'm running into an issue where my shaders refuse to compile. They really couldn't get much simpler, here's my vertex shader to demonstrate what I mean: //Minimal vertex shader #version 330 in vec3 in_Position; in vec3 in_Color; out vec3 var_Color; void main(void) { gl_Position = vec4(in_Position, 1.0); var_Color = in_Color; } The fragment shader is just as simple, so I won't