此 openFrameworks 插件为您提供了一个轻松构建 GLSL 后处理效果链的方法。
This openFrameworks addon gives you an easy way of putting together a chain of GLSL post-processing effects.
www.neilmendoza.com/ofxpostprocessing
NB This addon uses the branch setup as OF itself, the stable branch corresponds to the most recent release (i.e. the version that is downloadable from the OF site) and the master branch is the develop branch. If you have downloaded from the website, the you will want to use the stable branch...
https://github.com/neilmendoza/ofxPostProcessing/tree/stable
At the moment, it comes with the following effects (some ported from other sources and some original) that I'll gradually add to over time:
In your OF app declare an instance of ofxPostProcessing...
ofxPostProcessing post;
In your setup() function initialise the post-processing class and then add some effects...
post.init(ofGetWidth(), ofGetHeight());
post.createPass();
post.createPass();
Call post.begin() and post.end() around the the scene that you want to render...
post.begin();
post.end();
If you are using an ofCamera pass this to post.begin() and it takes care of the rest for you...
post.begin(cam);
post.end();
暂无开放 Issues,或尚未同步最近议题。