summarylogtreecommitdiffstats
path: root/ccShader_3D_Terrain.vert.patch
blob: 138ac0ae5285f882f8be65bb6be39965f04b7d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- /opt/cocos2d-x/cocos/renderer/ccShader_3D_Terrain.vert	2016-12-29 13:42:38.000000000 -0400
+++ /tmp/ccShader_3D_Terrain.vert	2017-01-04 15:03:03.753386368 -0400
@@ -1,19 +1,19 @@
 
-const char* cc3D_Terrain_vert = R"(
+const char* cc3D_Terrain_vert = STRINGIFY(
 attribute vec4 a_position;
 attribute vec2 a_texCoord;
 attribute vec3 a_normal;
-#ifdef GL_ES
+\n#ifdef GL_ES\n
 varying mediump vec2 v_texCoord;
 varying mediump vec3 v_normal;
-#else
+\n#else\n
 varying vec2 v_texCoord;
 varying vec3 v_normal;
-#endif
+\n#endif\n
 void main()
 {
     gl_Position = CC_MVPMatrix * a_position;
     v_texCoord = a_texCoord;
     v_normal = a_normal;
 }
-)";
+);