summarylogtreecommitdiffstats
path: root/ccShader_3D_Terrain.vert.patch
blob: 0cd522a4a7102ed91165b96d3e8622d29bac4002 (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	2017-03-22 15:13:34.000000000 -0400
+++ /tmp/ccShader_3D_Terrain.vert	2017-04-21 06:42:23.978479536 -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;
 }
-)";
+);