|
I'm trying to pass an integer attribute to the shader but there doesn't seem to be any GL_INT.
Only the GL_FLOAT exists.
com.jogamp.opengl.GL.GL_FLOAT
I'm trying to use the GL_INT instead of the GL_FLOAT in the code below:
int location=BONE_INDEX_LOC;
gl.glBindBuffer(GL_ARRAY_BUFFER, this.matrixIndexBufferId_);
gl.glVertexAttribPointer(location,weightsPerVertex_, com.jogamp.opengl.GL.GL_FLOAT, false, 0, 0);
gl.glEnableVertexAttribArray(location);
|