Set as an attribute.
// Set a array to glsl vec2 attribute named "coord2d". float[] vertices = [ 0.0, 0.8, -0.8, -0.8, 0.8, -0.8, ]; shader.setAttrib("coord2d", vertices);
See Implementation
Set as an attribute.