Code Monkey home page Code Monkey logo

ardemo's People

Contributors

floatpoint avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ardemo's Issues

运行奔溃

你好, 我下载了你的ARDemo, 运行的时候出现问题. 我的QQ是: 290907999.

Xcode Version 7.3.1 (7D1014)
iPhone6 9.3.2

第一次运行提示-fembed-bitcode, 修改了 ENABLE_BITCODE = NO, 可以安卓到手机, 运行就奔溃, 控制台打印是:
2016-07-18 15:09:52.508 ARDemo[1524:613189] 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-07-18 15:09:52.509 ARDemo[1524:613189] cocos2d: ERROR: 0:12: '' : syntax error: #extension must always be before any non-preprocessor tokens

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.