xcode 7.2.1 新建cocos2d项目 运行报错
Warning: Error creating LLDB target at path '/Users/sweetieTAM/Library/Developer/Xcode/DerivedData/GP_CrazyForest_v2.0-ffxxxkrfizurpfgqrvqonkczmogo/Build/Products/Debug-iphonesimulator/GP_CrazyForest_v2.0.app'- using an empty LLDB target which can cause slow memory reads from remote devices.
2016-02-21 20:46:48.938 GP_CrazyForest_v2.0[7979:302989] cocos2d: ERROR: Failed to compile shader:
precision mediump float;
uniform mat4 CC_PMatrix;
uniform mat4 CC_MVMatrix;
uniform mat4 CC_MVPMatrix;
uniform vec4 CC_Time;
uniform vec4 CC_SinTime;
uniform vec4 CC_CosTime;
uniform vec4 CC_Random01;
//CC INCLUDES END
#extension GL_OES_standard_derivatives : enable
#ifdef GL_ES
varying mediump vec4 v_color;
varying mediump vec2 v_texcoord;
#else
varying vec4 v_color;
varying vec2 v_texcoord;
#endif
void main()
{
#if defined GL_OES_standard_derivatives
gl_FragColor = v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord));
#else
gl_FragColor = v_color*step(0.0, 1.0 - length(v_texcoord));
#endif
}
2016-02-21 20:46:48.939 GP_CrazyForest_v2.0[7979:302989] cocos2d: ERROR: 0:12: '' : syntax error: #extension must always be before any non-preprocessor tokens
(lldb)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有这样的问题 ,不知道怎么解决
syntax error: #extension must always be before any non-preprocessor tokens