> glGetUniformLocation (256, "rglNormalMatrix") returned -1
I dont think that GlEs use a name like rglNormalMatrix for this uniform (=global variable in GLSL langage)
rgl looks like regal
glNormalMatrix is a name certainly more GL compliant
Same apply for this "in" (=parameter variable in GLSL langage)
in vec4 rglVertex
so having shaders with
rgl* changed to gl* would certainly help
>I know nothing about shaders language at moment sadly
Have a look here : you will understand enough for your triangles code:
http://nehe.gamedev.net/article/glsl_an_introduction/25007/Alain