summarylogtreecommitdiffstats
path: root/ccShader_3D_Skybox.frag.patch
blob: e1daffa3c0fe7a59cc753938aa02b3cfec3c50eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- /opt/cocos2d-x/cocos/renderer/ccShader_3D_Skybox.frag	2017-03-22 15:13:34.000000000 -0400
+++ /tmp/ccShader_3D_Skybox.frag	2017-04-21 06:42:24.531816306 -0400
@@ -1,9 +1,9 @@
-const char* cc3D_Skybox_frag = R"(
-#ifdef GL_ES
+const char* cc3D_Skybox_frag = STRINGIFY(
+\n#ifdef GL_ES\n
 varying mediump vec3        v_reflect;
-#else
+\n#else\n
 varying vec3        v_reflect;
-#endif
+\n#endif\n
 uniform samplerCube u_Env;
 uniform vec4 u_color;
 
@@ -11,4 +11,4 @@
 {
     gl_FragColor = textureCube(u_Env, v_reflect) * u_color;
 }
-)";
+);