0.0.3 • Published 6 years ago
@jsantell/wagner v0.0.3
@jsantell/wagner
Post processing for three.js.
An ES6-ified, composable fork of Wagner, similar to other forks (@alex_toudic/wagner, @superguigui/wagner), with a focus on pulling in only the needed passes and not requiring any transforms (e.g. glslify) in the consumer's project.
Install
$ npm install @jsantell/wagner --save-dev
Example
import { Composer, Pass } from '@jsantell/wagner';
import VignettePass from '@jsantell/wagner/src/passes/VignettePass.js';
const composer = new Composer(renderer);
const pass = new VignettePass();
function onRender() {
composer.reset();
composer.render(scene, camera);
composer.pass(pass);
composer.toScreen();
}
Currently ported passes
See src/passes/.
LICENSE
The MIT License (MIT)
Copyright (c) 2018 Jordan Santell Copyright (c) 2016 Alex Toudic Copyright (c) 2014 Jaume Sanchez All shaders are copyright of their respective authors.