wantnon / effectnodes-for-cocos2dx Goto Github PK
View Code? Open in Web Editor NEWspecial effects collection for cocos2dx
License: MIT License
special effects collection for cocos2dx
License: MIT License
currently in EffectNodes v3, because it's translated from v2, for convenience, i use a customCommand to pass uniform value, this is not efficient and comfortable to code, i should modify it to cocos2dx 3.x style: set uniform values to program and cache, but do not pass to glProgram immediately, actual
pass uniform values happens automatically when the command is being executed. reference to cocos2dx 3.x samples.
OpenGL error 0x0502
在ripple demo 中,在ripple node 下添加一个背景
auto bg = Sprite::create("demoRes/tableCloth.png");
bg->setPosition(Vec2(visibleSize.width/2 , visibleSize.height/2));
this->addChild(bg);
然后执行 render texture 截屏
auto render = RenderTexture::create(visibleSize.width, visibleSize.height);
render->begin();
Director::getInstance()->getRunningScene()->visit();
render->end();
Director::getInstance()->getRenderer()->render();
this->addChild(render,10,"render");
正常显示
可以看出 图片的左侧和下侧 都没有显示全,
而在我自己的竖屏项目中,iphone基本可以正常显示,没有太明显的裁减的情况,但是在ipad上左侧被裁减的很严重
Hi,
i'm very interested by your EffectNodes , could you please update it to the V3.3 ?
kind regards
Can i apply the effect ripple_horizontal on the colorLayer or the node?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.