three-anaglyphffect
A fork of the anaglyph effect for npm package
ThreeJS AnaglyphEffect as an npm module.
var AnaglyphEffect = { renderer = canvas: glcanvas renderer scene = camera = 50 width/height 1 1000 cameraposition camera var focalLength = 75; anaglyphEffect = renderer focalLength width height; var geo = 111 var mat = wireframe: true color: 0xffffff var box = geo mat scene} { anaglyphEffect;}
AnaglyphEffect = require('three-anaglypheffect')
This module exports a function which returns an AnaglyphEffect class. This allows you to use the module with CommonJS, globals, etc.
The returned function has the following constructor pattern:
anaglyphEffect = renderer focalLength width height