diff options
author | Wilson E. Alvarez | 2017-01-04 16:44:08 -0400 |
---|---|---|
committer | Wilson E. Alvarez | 2017-01-04 16:44:08 -0400 |
commit | 34329dcd851a1aa3054cc5211327c98b17ef07a0 (patch) | |
tree | e92e62356bb61c441261c11f2846538e5cbd712c /ccShader_3D_Terrain.frag.patch | |
parent | 5e1dc36bda2e1684829db29b7749503309549a24 (diff) | |
download | aur-34329dcd851a1aa3054cc5211327c98b17ef07a0.tar.gz |
cocos2d-x V3.14
Diffstat (limited to 'ccShader_3D_Terrain.frag.patch')
-rw-r--r-- | ccShader_3D_Terrain.frag.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ccShader_3D_Terrain.frag.patch b/ccShader_3D_Terrain.frag.patch new file mode 100644 index 000000000000..1fed1a335cf7 --- /dev/null +++ b/ccShader_3D_Terrain.frag.patch @@ -0,0 +1,33 @@ +--- /opt/cocos2d-x/cocos/renderer/ccShader_3D_Terrain.frag 2016-12-29 13:42:38.000000000 -0400 ++++ /tmp/ccShader_3D_Terrain.frag 2017-01-04 15:03:03.693393276 -0400 +@@ -1,18 +1,18 @@ + +-const char* cc3D_Terrain_frag = R"( +-#ifdef GL_ES ++const char* cc3D_Terrain_frag = STRINGIFY( ++\n#ifdef GL_ES\n + precision mediump float; +-#endif ++\n#endif\n + uniform vec3 u_color; + varying vec2 v_texCoord; + varying vec3 v_normal; +-#ifdef GL_ES ++\n#ifdef GL_ES\n + uniform lowp int u_has_alpha; + uniform lowp int u_has_light_map; +-#else ++\n#else\n + uniform int u_has_alpha; + uniform int u_has_light_map; +-#endif ++\n#endif\n + uniform sampler2D u_alphaMap; + uniform sampler2D u_texture0; + uniform sampler2D u_texture1; +@@ -45,4 +45,4 @@ + gl_FragColor = vec4(color.rgb*lightColor.rgb*lightFactor, 1.0); + } + } +-)"; ++); |