Part of lucidity project.
THREE.js scene composition tool
Compose complexe scenes by writing simple composition functions with support for live (shader) coding.
Asynchronous scene loading and setup uses promises and ensures that scenes down
the graph hierarchy are entirely loaded before they are inserted in parent
objects through the call to
First declare sources by specifying a folder.
const compose =const fx = compose// expects fx/cube/index.js or fx/cube.js to exist// same scene but with some additional options (these are passed right through// to the scene's "setup" function).fx'cube'distance: 50 extent: 10
Compose with postprocessing effect.
Transition between 'cube' and 'sphere' scenes using a 'fade' effect.
const trans = composefx'fade'position: 03fx'blur'radius: 08
Look at the examples in 'examples' to get an idea of Scene definitions.
npm install lucy-three --save
Please use 'jessy style'.
Add unit tests for any new or changed functionality.
- 0.2.0 (2015-09-22) Anaglyph renderer, better resizing support.
- 0.1.1 (2015-09-03) Fixed main module.
- 0.1.0 (2015-09-03) Initial release.