Shader does not accept the Parameters.

Posted by Vasilij on
URL: https://forum.jogamp.org/Shader-does-not-accept-the-Parameters-tp4031551.html

Hello,

I have written vShader and fShader in GLSL ES 3.0.

I can compile them without errors and I link them to Shader-programm.
Now, when i initilaise them like this:  positionIdx = gl.glGetAttribLocation(shaderProgram, "a_position");
the int-value of "positionIdx" is -1.What can be a problem?