blob: 96d772772e029a4e6b5bf1b5eefbda96b17f046e (
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_PositionColorTextureAsPointsize.vert 2017-04-12 15:00:32.000000000 -0400
+++ /tmp/ccShader_PositionColorTextureAsPointsize.vert 2017-04-21 06:42:23.528476740 -0400
@@ -22,18 +22,18 @@
* THE SOFTWARE.
*/
-const char* ccPositionColorTextureAsPointsize_vert = R"(
+const char* ccPositionColorTextureAsPointsize_vert = STRINGIFY(
attribute vec4 a_position;
attribute vec4 a_color;
attribute vec2 a_texCoord;
-#ifdef GL_ES
+\n#ifdef GL_ES\n
varying lowp vec4 v_fragmentColor;
-#else
+\n#else\n
varying vec4 v_fragmentColor;
-#endif
+\n#endif\n
uniform float u_alpha;
void main()
@@ -42,4 +42,4 @@
gl_PointSize = a_texCoord.x;
v_fragmentColor = vec4(a_color.rgb * a_color.a * u_alpha, a_color.a * u_alpha);
}
-)";
+);
|