blob: 6699ceefb4365080d6ff9ca8a2d67f5bc1284999 (
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
28
29
30
31
|
--- /opt/cocos2d-x/cocos/renderer/ccShader_CameraClear.vert 2017-03-22 15:13:34.000000000 -0400
+++ /tmp/ccShader_CameraClear.vert 2017-04-21 06:42:23.625144008 -0400
@@ -1,18 +1,18 @@
-const char* ccCameraClearVert = R"(
+const char* ccCameraClearVert = STRINGIFY(
uniform float depth;
attribute vec4 a_position;
attribute vec2 a_texCoord;
attribute vec3 a_color;
-#ifdef GL_ES
+\n#ifdef GL_ES\n
varying mediump vec2 v_texCoord;
varying mediump vec3 v_color;
-#else
+\n#else\n
varying vec2 v_texCoord;
varying vec3 v_color;
-#endif
+\n#endif\n
void main()
{
gl_Position = a_position;
@@ -21,4 +21,4 @@
v_texCoord = a_texCoord;
v_color = a_color;
}
-)";
+);
|