JSPM

postprocessing

0.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 154623
  • Score
    100M100P100Q170213F
  • License Zlib

A post processing library that provides the means to implement 2D filter effects for three.js.

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

Build status GitHub version npm version Dependencies

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

Documentation

API

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.