Giter Club home page Giter Club logo

cocos2dx-2.x-filters's Introduction

cocos2dx-2.x-filters

2014-08-04:

修复路径filter路径错误的问题

修复CCSpriteWithFilter 不设置滤镜情况下不显示的问题

修复CCGodRay在手机上导致崩溃的问题,并且在构造函数中增加采样次数和权重的设置,默认为50次采样,0.1权重

2014-07-27:

增加了CCWaveFilter 使用范例

  • CCWaveFilter* waveFilter = CCWaveFilter::create(1,1);
  • sprite->setFilter(waveFilter);
  • 参数中的宽高为百分比,本质为扭曲的终点

    once upon a time:

    使用范例

  • CCGodRayFilter* filter = CCGodRayFilter::create();
  • CCSpriteWidthFilter* sprite = CCSpriteWidthFilter::create("HelloWorld.png");
  • sprite->setFilter(filter);
  • god ray 预览图:

    <img src="http://www.dreamfairy.cn/blog/wp-content/uploads/2014/06/cocso2dxgodray.jpg" /img>

    cocos2dx-2.x-filters's People

    Contributors

    dreamfairy avatar

    Stargazers

     avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

    Watchers

     avatar  avatar  avatar  avatar  avatar  avatar  avatar

    cocos2dx-2.x-filters's Issues

    CCGodRayFilte没效果

    CCGodRayFilter* filter = CCGodRayFilter::create();
    CCSpriteWidthFilter* sprite = CCSpriteWidthFilter::create("HelloWorld.png");
    sprite->setFilter(filter);

    这个上帝之光的效果,只是颜色变灰 了,不知道是哪里设置有问题?

    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.