correct wrong presion, which leads to failed on some devices

This commit is contained in:
yangxiao 2015-10-15 11:59:38 +08:00
parent 07c2ec49db
commit 907189ed14
1 changed files with 3 additions and 3 deletions

View File

@ -1,13 +1,13 @@
const char* cc3D_Terrain_frag = STRINGIFY(
\n#ifdef GL_ES\n
precision lowp float;
precision mediump float;
\n#endif\n
uniform vec3 u_color;\n
varying vec2 v_texCoord;\n
varying vec3 v_normal;\n
uniform int u_has_alpha;\n
uniform int u_has_light_map;\n
uniform lowp int u_has_alpha;\n
uniform lowp int u_has_light_map;\n
uniform sampler2D u_alphaMap;\n
uniform sampler2D u_texture0;\n
uniform sampler2D u_texture1;\n