Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 686 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 686 Bytes

wagner-common

Fork of superguigui/Wagner in commonjs for webpack.

demo

Installation

npm install @alex_toudic/wagner three --save

Usage

var THREE = require('three');
var WAGNER = require('@alex_toudic/wagner');
var BloomPass = require('@alex_toudic/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();