blob: 579dbc7068aad230097b5c5bb70e23972808a767 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- /opt/cocos2d-x/cocos/renderer/ccShader_Label_df_glow.frag 2017-03-22 15:13:34.000000000 -0400
+++ /tmp/ccShader_Label_df_glow.frag 2017-04-21 06:42:23.691811088 -0400
@@ -1,8 +1,8 @@
-const char* ccLabelDistanceFieldGlow_frag = R"(
+const char* ccLabelDistanceFieldGlow_frag = STRINGIFY(
-#ifdef GL_ES
+\n#ifdef GL_ES\n
precision lowp float;
-#endif
+\n#endif\n
varying vec4 v_fragmentColor;
varying vec2 v_texCoord;
@@ -23,4 +23,4 @@
vec4 color = u_effectColor*(1.0-alpha) + u_textColor*alpha;
gl_FragColor = v_fragmentColor * vec4(color.rgb, max(alpha,mu)*color.a);
}
-)";
+);
|