#version 400
layout(location = 0) in vec4 position;
void main()
{
gl_Position= vec4(position);
layout(location = 0) in vec4 position;
void main()
{
gl_Position= vec4(position);
}
#version 400
out vec4 outputColor;
void main()
{
outputColor=vec4(0.2,0.1,0.5,1.0);
}
断断续续的弄了N个GLSL的helloworld,一直出现错误,今天才知道原因,缺少了#version 400,不然GLSL就是默认的鬼知道的版本!!