|
小弟新手,有没有大神知道这个问题是怎么产生的吗,模型的图片怎么显示的有些位置变色了?跪求解决方案,shader代码如下,es2.0
static const char vertSource[] =
"uniform sampler2D u_samplerTexture;\n"
"varying highp vec4 color; \n"
"void main() {\n"
" gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; \n"
" color = texture2D(u_samplerTexture,gl_MultiTexCoord0.st);\n"
"} \n";
static const char fragSource[] =
"precision highp float; \n"
"varying highp vec4 color;\n"
"void main() { \n"
" gl_FragColor = color;\n"
"} \n";
模型
|
|