Hello,
i have problems with the most simple glslang shaders
with this Result .Code ://vertex shader: varying vec3 Normal; void main(void) { //Normal = gl_Normal; Normal = vec3(1.0, 1.0, 1.0); gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; } //fragment shader: varying vec3 Normal; void main(void) { gl_FragColor = vec4(Normal.x, Normal.y, Normal.z, 1.0); }
if I uncomment the 1st line in the vertex shader to change Normal to gl_Normal, the screen gets black.
I check for open gl errors, the info log and validates the programm object but no errors messages.
What can interfere in this way with the shader ? I've testet this shader with 3dlabs ogl2example and there were no problems. So I guess it's a problem in my framework. But i have no idea where. With fixed pipeline shading i had no problems.
any ideas ?





