fix shader on pc

This commit is contained in:
yangxiao 2015-10-22 09:29:12 +08:00
parent 907189ed14
commit cca25f5b5c
1 changed files with 5 additions and 0 deletions

View File

@ -6,8 +6,13 @@ precision mediump float;
uniform vec3 u_color;\n
varying vec2 v_texCoord;\n
varying vec3 v_normal;\n
\n#ifdef GL_ES\n
uniform lowp int u_has_alpha;\n
uniform lowp int u_has_light_map;\n
\n#else\n
uniform int u_has_alpha;\n
uniform int u_has_light_map;\n
\n#endif\n
uniform sampler2D u_alphaMap;\n
uniform sampler2D u_texture0;\n
uniform sampler2D u_texture1;\n