openGL float 错误

#4
by kevinliu83 - opened

即使在 ImageDrawer类中设置 private final String vertexShaderCode =
"precision mediump vec2;\n" + // vec2 类型的精度
"precision mediump vec4;\n" + // vec4 类型的精度
"uniform mat4 uMVPMatrix;\n" +
"attribute vec4 inputTextureCoordinate;\n" +
"varying vec2 textureCoordinate;\n" +
"attribute vec4 vPosition;\n" +
"void main() {\n" +
" gl_Position = uMVPMatrix * vPosition;\n" +
" textureCoordinate = inputTextureCoordinate.xy;\n" +
"}\n";

代码执行 依旧报错
Could not compile shader 35633:ERROR: 0:1: 'float' : illegal type argument for default precision qualifier
ERROR: 0:2: 'float' : illegal type argument for default precision qualifier

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment