diff --git a/cocos/renderer/ccShader_3D_Terrain.frag b/cocos/renderer/ccShader_3D_Terrain.frag index 9bc6c07f20..e9d460f3c7 100644 --- a/cocos/renderer/ccShader_3D_Terrain.frag +++ b/cocos/renderer/ccShader_3D_Terrain.frag @@ -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