This is the same shader from the WebGL example. GLSL shaders are held as source within your code and compiled for a specific system and graphics hardware by the program.
183 final String vertexShaderSource = "attribute vec3 position;" 184 + "attribute vec4 color;" 185 + "uniform mat4 modelViewMatrix;" 186 + "uniform mat4 projectionMatrix;" 187 + "" 188 + "varying vec4 vColor;" 189 + "" 190 + "void main()" 191 + "{" 192 + " gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1);" 193 + " vColor = color;" 194 + "}";
Precompiling or offline conpilation might be introduced in a future OpenGL version.