so i am new to lwjgl and am i messing with making a 3d game with so i was learning about shaders and i followed the
tutorial and i got this error message
0(1) : error C0000: syntax error, unexpected $undefined, expecting "::" at token "#"
0(5) : error C5060: out can't be used with non-varying color
0(10) : warning C1503: undefined variable "pos"
and my code for vertexShader is
#version 150
in vec3 pos;
out vec3 color;
void main(void)
{
gl_Position = vec4(pos, 1.0);
color = vec3(0.5,0.5,1.0);
}
my code for the fragmentShader is
#version 150
out vec4 outColor;
in vec3 color;
void main(void)
{
outColor = vec4(color,1.0);
}
What I have tried:
i have tried precision highp float;
but it gave me this error
0(1) : warning C7022: unrecognized profile specifier "highp"
0(1) : warning C7022: unrecognized profile specifier "nullprecision"
0(5) : error C5060: out can't be used with non-varying color
am i doing something wrong here?