问题模块 框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
客户端 小游戏 Bug 6.0 红米4 2.08
合并类型的shader模式在微信真机里无法运行,一直抱错expert Num错误。
h5下是可以运行的
shader如下:
var vsh = "precision mediump float;" + "attribute vec4 a_position;" + "uniform mat4 mvpMatrix;"+ "uniform vec4 a_color;"+ "varying vec4 vColor;"+ "varying vec2 texCoord;" + "void main()" + "{" + "vColor = a_color;"+ " texCoord = a_position.zw;" + " gl_Position = mvpMatrix * vec4(a_position.xy,0.0,1.0);" + "}";var fsh = "precision mediump float;" + "varying vec2 texCoord;" + "uniform sampler2D inputImageTexture;"+ "varying vec4 vColor;"+ "void main()" + "{" + " gl_FragColor = texture2D(inputImageTexture,texCoord)*vColor ; " + "}";
本文网址:http://www.91bianli.com/weixinxiaochengxu/50293.html