hello.
i use opengl 3.3.10524 version and glew.
and i saw this error.
Fragment shader fail to compile with the following errors:
ERROR : 0:2: error(#138) ‘varying in’ supported in geometry shaders only
this code is my fragment shader. just simply cartoon effect.
varying in vec3 normal;
void main(void)
{
vec3 Id = normalize( vec3(gl_LightSource[0].position) );
float ity = dot( Id, normal );
vec4 fc;
if( ity > 0.95 ) fc = 1.00 * gl_Color;
else if( ity > 0.50 ) fc = 0.50 * gl_Color;
else if( ity > 0.25 ) fc = 0.25 * gl_Color;
else fc = 0.10 * gl_Color;
gl_FragColor = fc;
}
what`s problem?
i knew HD 3850 (Graphic Driver 9.12 over) is Support for OpenGL Shading Language 1.50 and my Graphic Driver Catalyst 11.2 !!
need help !!