From 907189ed14d1048c51205365ea5ffccdc5824d95 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Thu, 15 Oct 2015 11:59:38 +0800 Subject: [PATCH] correct wrong presion, which leads to failed on some devices --- cocos/renderer/ccShader_3D_Terrain.frag | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/renderer/ccShader_3D_Terrain.frag b/cocos/renderer/ccShader_3D_Terrain.frag index 896ca38a34..9bc6c07f20 100644 --- a/cocos/renderer/ccShader_3D_Terrain.frag +++ b/cocos/renderer/ccShader_3D_Terrain.frag @@ -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