File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5353 @" }\n " ;
5454#else
5555static NSString *CCDrawNodeFragmentShaderSource =
56- @" #ifdef GL_ES\n "
57- @" #extension GL_OES_standard_derivatives : enable\n "
58- @" #endif\n "
59- @" \n "
6056 @" void main(){\n "
6157 @" gl_FragColor = cc_FragColor*smoothstep(0.0, length(fwidth(cc_FragTexCoord1)), 1.0 - length(cc_FragTexCoord1));\n "
6258 @" }\n " ;
Original file line number Diff line number Diff line change 6262// These are the lines loaded for both vertex and fragment shaders
6363
6464static NSString *CCShaderHeader =
65+ @" #ifdef GL_ES\n "
66+ @" #ifdef GL_OES_standard_derivatives\n "
67+ @" #extension GL_OES_standard_derivatives : enable\n "
68+ @" #endif\n "
69+ @" #endif\n "
6570 @" #ifndef GL_ES\n "
6671 @" #define lowp\n "
6772 @" #define mediump\n "
You can’t perform that action at this time.
0 commit comments