Commit b068d4b0 authored by 邱旭's avatar 邱旭

增加shader编译错误打印shader代码

parent 19c8ad9f
......@@ -638,15 +638,15 @@ const FRAG = [
" #ifdef USE_MAP",
" vec4 mapColor = texture2D( uMap, vTextureCoord );",
" color *= mapColor;",
" vec2 s = step(vec2(uFrameUvs.x,uFrameUvs.y),vTextureCoord) - step(vec2(uFrameUvs.z,uFrameUvs.w),vTextureCoord);",
" vec2 s = step(vec2(uFrameUvs.x, uFrameUvs.y),vTextureCoord) - step(vec2(uFrameUvs.z, uFrameUvs.w), vTextureCoord);",
// " vec2 s = step(vec2(0.6669921875,0.4111328125),vTextureCoord) - step(vec2(0.951171875,0.65625),vTextureCoord);",
" color *= abs(s.x * s.y);",
" #endif",
" vec3 normal = vNormal;",
" #ifdef USE_NORMAL_MAP",
" normal = getNormalFromMap();",
" #endif",
" #ifdef USE_NORMAL_MAP",
" normal = getNormalFromMap();",
" #endif",
//计算顶点颜色
" #ifdef USE_VERTEXCOLOR",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment