@superguigui/wagner
v0.1.6
Published
Fork of spite/Wagner in commonjs for browserify and glslify.
Downloads
25
Readme
wagner-common
Fork of spite/Wagner in commonjs for browserify and glslify. The Passes are not all available yet i'm porting them as I need them, PR welcome (it's fairly easy to port).
Installation
npm install @superguigui/wagner glslify three --save
Usage
var THREE = require('three');
var WAGNER = require('@superguigui/wagner');
var BloomPass = require('@superguigui/wagner/src/passes/bloom/MultiPassBloomPass');
// ...
var composer = new WAGNER.Composer(renderer);
var bloomPass = new BloomPass({
blurAmount: 2,
applyZoomBlur: true
});
// ...
renderer.autoClearColor = true;
composer.reset();
composer.render(scene, camera);
composer.pass(bloomPass);
composer.toScreen();