Package Exports
- postprocessing
- postprocessing/src/passes/render
- postprocessing/src/passes/shader
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postprocessing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Post Processing
A post processing library that provides the means to implement 2D filter effects for three.js.
Installation
$ npm install postprocessing
Usage
// Attention: Three is not yet an ES6 module!
import { WebGLRenderer, Scene, PerspectiveCamera } from "three";
import { EffectComposer, RenderPass, GlitchPass } from "postprocessing";
var composer = new EffectComposer(new WebGLRenderer());
composer.addPass(new RenderPass(new Scene(), new PerspectiveCamera()));
var glitchPass = new GlitchPass();
glitchPass.renderToScreen = true;
composer.addPass(glitchPass);
(function render(now) {
composer.render();
requestAnimationFrame(render);
}());
Included Filters
- Adaptive Luminance
- Crepuscular Rays
- Tone-Mapping
- Dot Screen
- Glitch
- Bloom
- Bokeh
- Film
Documentation
Contributing
Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
License
This library is licensed under the Zlib license.
The original code was written by alteredq,
miibond, zz85,
felixturner and huwb
and is licensed under the MIT license.