Shader attribute mat4 not binding correctly (Opengl ES 2.0 Android)
问题 I have the following shader: protected final static String vertexShaderCode = "attribute vec4 vPosition;" + "attribute vec2 texCoord;" + "attribute mat4 uMVPMatrix; \n" + "varying vec2 vTexCoord;" + "void main() {" + " gl_Position = uMVPMatrix * vPosition;" + " vTexCoord = texCoord;" + "}"; I want to pass in the mvp matrix as an attribute, however it doesn't seem to be bound correctly. I'm using auto-assigned binding. When I query the attribute locations after linking the program as follows: