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 53
53
@" }\n " ;
54
54
#else
55
55
static NSString *CCDrawNodeFragmentShaderSource =
56
- @" #ifdef GL_ES\n "
57
- @" #extension GL_OES_standard_derivatives : enable\n "
58
- @" #endif\n "
59
- @" \n "
60
56
@" void main(){\n "
61
57
@" gl_FragColor = cc_FragColor*smoothstep(0.0, length(fwidth(cc_FragTexCoord1)), 1.0 - length(cc_FragTexCoord1));\n "
62
58
@" }\n " ;
Original file line number Diff line number Diff line change 62
62
// These are the lines loaded for both vertex and fragment shaders
63
63
64
64
static 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 "
65
70
@" #ifndef GL_ES\n "
66
71
@" #define lowp\n "
67
72
@" #define mediump\n "
You can’t perform that action at this time.
0 commit comments