blob: c8c6214ec15d1d91b76e7f5d7daae8a096f84c82 (
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_UI_Gray.frag 2017-03-22 15:13:34.000000000 -0400
+++ /tmp/ccShader_UI_Gray.frag 2017-04-21 06:42:24.595150032 -0400
@@ -1,8 +1,8 @@
-const char* ccPositionTexture_GrayScale_frag = R"(
+const char* ccPositionTexture_GrayScale_frag = STRINGIFY(
-#ifdef GL_ES
+\n#ifdef GL_ES\n
precision mediump float;
-#endif
+\n#endif\n
varying vec4 v_fragmentColor;
varying vec2 v_texCoord;
@@ -14,4 +14,4 @@
gl_FragColor.xyz = vec3(0.2126*c.r + 0.7152*c.g + 0.0722*c.b);
gl_FragColor.w = c.w;
}
-)";
+);
|